The sun's energy warms the surface of the ocean, causing the water molecules to move faster and take up more space. This expansion of water is one of the main drivers of ocean currents, which circulate warm water around the globe and play a vital role in regulating the Earth's climate.