Unequal solar radiation of the earth causes local and planetary scale instability, air masses and distinct climactic features. For instance, tropical climates near the equator tend to be warm and moist, while polar regions tend to be cold.
Depending on the temperature, air can evaporate, condense, freeze or sublimate. Condensation then leads to precipitation in the form of rain, snow, sleet, hail, etc.