Dandruff caused by seborrheic dermatitis can be treated with medication (e.g. ketoconazole, itraconazole, etc.) on the basis of adjusting lifestyle habits and following doctor’s instructions. 1. Adjustment of lifestyle habits: seborrheic dermatitis patients should maintain a regular routine to ensure adequate sleep, in addition, should limit the intake of high-fat, high-sugar foods, such as whole milk, fatty meats, fried foods, egg tarts, etc., and to avoid spicy and stimulating foods and alcohol. 2. Medication: (1) Topical medication: For dandruff caused by infantile seborrheic dermatitis, warm water and baby shampoo can be used to wash the hair and remove the scabs. Adults with dandruff caused by seborrheic dermatitis can use ketoconazole shampoo to wash their hair or apply ketoconazole cream or tacrolimus cream locally as prescribed by the doctor to improve the symptoms. (2) oral medication: seborrheic dermatitis and Malassezia infection, patients can follow the doctor’s instructions oral antifungal drugs, such as itraconazole, etc., if accompanied by intense itching, oral antihistamines, such as loratadine. Most patients can be cured after standardized treatment, it is recommended that patients go to the hospital in time, under the guidance of the doctor standardized treatment.