Answer:
Our skin gets tanned by getting exposed to sunlight due to the production of melanin as a protective measure.
Step-by-step explanation:
Electromagnetic waves like infrared waves and UV rays are present in sunlight. While infrared rays maintain the earth’s atmospheric heat UV rays doesn’t prove to be helpful. UV rays that penetrate the skin damages the DNA and RNA .
The body has developed a fighting mechanism to tackle this problem. That method is the production of melanin, which is the colouring pigment in human skin. The melanin reduces the penetration of UV rays into the skin.