How do bodies of water affect local winds?

Due to the high specific heat capacity (the amount of energy it takes to change a substance's temperature) of water, a lake, or a similar body of water would remain cooler than the surrounding land during the day. The warm air over land rises and the cold air over the water rushes in to fill that gap, creating a wind away from the water.

During the nighttime, however, a body of water is usually warmer than the surrounding land, so the process is reversed, and the wind blows towards the water.