The main cause of flaking is an overgrowth of yeast on the scalp, which can be caused by a variety of factors including oily skin, hormonal changes, stress, and a weakened immune system. Other factors that can contribute to flaking include not shampooing enough, using hair styling products, and cold weather.