According to one study, dandruff happens in association with Skin oil medically called sebum secreted by your sebaceous glands around the hair follicle, and the fungus Malassezia is attracted to this oil or fats in this oil and evokes an inflammatory response in susceptible people.