Vitamin D is a fat-soluble hormone that is mainly synthesized in the skin after exposure to ultraviolet rays from sunlight (in the form of vitamin D3), and, to a lesser extent, is derived from dietary intake in the form of either vitamin D2 or D3 (the main sources of vitamin D are fatty fish, fish oils, egg yolks, cheese, and vitamin D-fortified foods).