Melanin is the pigment found in skin, hair and the iris of the eye. It provides these with colour. It has two main functions: to provide colour in these organs and to protect them from UV light .
The pigment is produced in melanocytes on exposure to UV rays from sunlight, causing the skin to tan in order to protect the skin from damage. Melanocytes are found between the dermis and the epidermis in skin. The more active they are, the more pigment will be made and the darker the skin will appear.  Mammals usually have a mixture of both types of melanin 
There are three types of melanin: eumelanin, phaeomelanin and neuromelanin.The first causes brown colours and the most known, the second is responsible for reddish colours and neuromelanin is found in the parts of the brain. 
Skin pigmentation as well as epidermal thickness, DNA repair mechanisms, apoptosis and some other factors prevents DNA damage from ultraviolet light. UV radiation’s destruction of DNA is one of the major factors causing skin tumours like basal cell carcinoma (BCC), squamous cell carcinoma (SCC) and malignant melanoma. 
Melanin is an important factor of skin condition known as Vitiligo. This condition affects approximately 0.1-2% of individuals in vary populations across the globe. It as an autoimmune disease whereby the individual would lose melanocyte activity for the production of Melanin resulting in hypopigmentation. This results in areas of skin with no pigment (Melanin) which creates white patches of skin across the body and can result in sunburn from minimal sun exposure.
- ↑ https://www.nlm.nih.gov/medlineplus/ency/article/002256.htm
- ↑ PubMed Health. 'Melanin - National Library Of Medicine - Pubmed Health'. N.p., 2015. Web. 19 Oct. 2015. http://www.ncbi.nlm.nih.gov/pubmedhealth/PMHT0022690/
- ↑ http://www.cancerresearchuk.org/about-cancer/type/melanoma/about/the-skin-and-melanoma
- ↑ Hearing, Vincent J., and Katsuhiko Tsukamoto. ‘Enzymatic control of Pigmentation in Mammals’. FASEB J. 5 (1991): 2902-2909. Web.19 Oct. 2015. http://www.fasebj.org/content/5/14/2902.full.pdf
- ↑ http://palaeo.gly.bris.ac.uk/melanosomes/melanin.html
- ↑ Brenner, Michaela, and Vincent J. Hearing. 'The Protective Role Of Melanin Against UV Damage In Human Skin'. Photochemistry and Photobiology 84.3 (2007): 539-549. Web. 19 Oct. 2015.http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2671032/
- ↑ https://www.ncbi.nlm.nih.gov/pubmed/26756425
- ↑ http://www.nhs.uk/Conditions/Vitiligo/Pages/Introduction.aspx