Volcanic carbon dioxide in Earth's early atmosphere kept Earth warm enough for life to begin during the time when the Sun was too dim to provide much warmth.
Clouds are formed from the evaporation of the oceans' water that is warmed by the Sun and rises high into the atmosphere, condensing in tiny droplets on minute particles of dust.