The main cause of an ocean gyre is winds.
Ocean gyres are large systems of rotating ocean currents, primarily driven by the wind patterns. The prevailing winds push surface water, creating circular patterns in the ocean. The Coriolis effect, resulting from the Earth's rotation, also plays a significant role in the direction and movement of these currents. While factors like water density and salinity can influence ocean circulation, the primary driving force for the formation of gyres is the wind.