Melanin aids in providing protection to the skin from UV radiation, electromagnetic radiation, and also aids in heat regulation according to Dr. Anu Kapoor, a leading skin specialist in Delhi. There are various factors that regulate the distribution of melanin including the endocrine system, genes, and environmental factors.