The sun rises each morning and when it does, the ground begins to warm. Roads, sand and rocks (solid things) absorb the warmth faster and get hotter faster than liquids as such as large bodies of water, lakes, ponds, the ocean etc..At the beach, the sand and roads heat up a lot faster and get hotter than the ocean water. This uneven heating of the earth, in that location, sets up areas of different air pressure zones. The hotter areas being low pressure and the cooler areas being more high pressure. When this happens, the lighter air from the warmer low-pressure zones rises and is replaced by denser, colder air from the high-pressure zones. The movement of air from high to low manifests as the sea breeze.In the morning, the sea breeze blows from the ocean towards the beach. In the evening, the situation becomes reversed as the land becomes cooler than the ocean and the winds blow in the opposite direction, towards the ocean.