Sunlight causes convection which carries warmth and water vapor up into the sky where clouds form and bring rain.
the sun drives almost every aspect of our world's climate system and makes possible life as we know it.