The main cause of dandruff is usually a fungus called Malassezia globosa, but other factors like dry skin, sensitivity to hair products, and certain skin conditions can also contribute.