What is the Function of Melanin?

Melanin in our body determins our skin color, hair color and our eye (iris) color. Melanin’s primary function is to filter out sunlight causing harmful damage to our skin.