NOVELTY - Extracting chitosan from Hermetia illucens, involves (a) soaking the H.illucens, or pupa shell, pupa or larva of H.illucens in hydrochloric acid, washing and drying component, (b) soaking obtained sample (A) in sodium hydroxide, washing and drying component, (c) soaking obtained sample (B) in sodium hypochlorite solution for de-pigmentation, (d) soaking obtained dried chitin sample in sodium hydroxide and washing chitin sample, and (e) repeating step (d) several times and drying chitin sample to obtain chitosan.    USE - The method is useful for extracting chitosan from H.illucens. The chitosan is useful in preparation of hydroxyapatite reinforced chitosan. The chitosan is used in fields of environmental protection, medical care, food products, textiles and agricultural products.    ADVANTAGE - The raw material is easily available with wide variety of sources. The method is simple and enables extraction of the chitosan at higher rate. The quality of the product is easy to control.    DETAILED DESCRIPTION - Method for extracting chitosan from Hermetia illucens, involves (a) soaking one or more of H.illucens pupa shell, H.illucens pupa, H.illucens larva and H.illucens in hydrochloric acid solution (1-10 %mass) at 10-40 degrees C for 5-24 hours, washing soaked components using water until the components become neutral and drying washed component to obtain sample (A), (b) soaking the sample (A) in 1-15 %mass of sodium hydroxide solution at 40-100 degrees C for 24 hours, washing soaked components using water until the components become neutral and drying washed component to obtain sample (B), (c) subjecting the sample (B) to de-pigmentation process by soaking the sample (B) in sodium hypochlorite solution (0.5-5 mol.%) at 60-100 degrees C for 1-24 hours, and drying soaked sample (B) to obtain chitin, (d) soaking chitin sample in sodium hydroxide solution (30-70%) at 70-120 degrees C for 1-24 hours and washing chitin sample using water until chitin sample become neutral, and (e) repeating the step (d) several times and drying chitin sample to obtain chitosan.