The sun sends energy to Earth in a few different ways: visible light that you can see, infrared radiation that you feel as heat, and rays of UV radiation that you can’t see or feel.
Fortunately, the Earth’s atmosphere protects us from most UV radiation. While we need some exposure to sunlight to help our bodies make vitamin D, too much UV is dangerous.