The heat of the sun evaporates water from the earth, oceans, rivers and lakes to form water vapor. As the air rises, it rises and forms clouds, and the colder it gets, the higher it rises, the more it is collected, causing more and more water vapor to condense in this way, and the droplets in the cloud get bigger and bigger, and until then, they are heavy enough to fall on the earth like rain.