Here's why:
* Infrared radiation is a type of electromagnetic wave with longer wavelengths than visible light. When infrared radiation strikes an object, it causes the molecules in that object to vibrate faster, increasing their kinetic energy. This increased kinetic energy manifests as heat.
* Visible light also contributes a small amount to heating, but its effect is less significant than infrared radiation.
* Ultraviolet radiation has shorter wavelengths than visible light and carries more energy. While it can cause skin to tan or burn, it doesn't directly contribute much to overall heating.
Therefore, infrared radiation is the main culprit behind the sun's warming effect on Earth.