Understanding the origin of clouds