Sunlight: Exposure to sunlight is the most natural way to obtain vitamin D. However, factors such as geographic location, skin color, and use of sunscreen can affect vitamin D synthesis. Diet: Certain foods are rich in vitamin D, including fatty fish like salmon and mackerel, fortified dairy products, and egg yolks. Supplements: Vitamin D supplements are available and can be an effective way to ensure adequate intake, especially for individuals who have limited sun exposure or dietary intake.