The exact cause of milia is not well understood. However, it is believed to result from immature sebaceous glands. Unlike acne, milia are not related to hormonal changes or bacterial infections. They occur when keratin, a protein found in the skin, becomes trapped beneath the surface.