As air gets heated up, it becomes lighter and rises up while the heavy upper layer air comes down. This movement is called convection current. Due to this, during day time to fill the space just above the earth's surface, air from sea blows towards earth. During night time, the land gets cooled faster than the water in sea. So, to fill the space just above sea water, air from the land moves. Thus, land and sea breeze are formed.