Your skin protects your body from the many viruses and bacteria you are exposed to daily. It also protects you from the sun's rays - specifically ultraviolet light - that can damage cells. Healthy skin produces vitamin D when exposed to the sun, and vitamin D is important for many body functions.