Heat from the sun causes circulation patterns of warm and cool air.
This heat unevenly warms the Earth's surface, creating areas of high and low pressure, which in turn drive the prevailing winds. These winds then push on the surface of the oceans, creating ocean currents.