UV Index and Vitamin D: Finding the Right Balance Spending time in the sun can be one of the simplest ways to help your body make vitamin D. This important vitamin helps keep your bones strong, supports your immune system, and even boosts your mood. But while sunshine has its benefits, too much of it—especially when the sun is strong—can har