Vitamin D is a fat-soluble vitamin that is important for intestinal absorption of calcium and phosphate. It can be synthesized in the skin upon exposure to sunlight or obtained from dietary sources. The liver and kidneys work to activate vitamin D into its functional form. Deficiency can lead to rickets in children and osteomalacia in adults, while toxicity in excess causes hypercalcemia and calcification of soft tissues.