Temperature plays a critical role in in shaping ocean currents, as it influences the density and salinity of seawater. As seawater temperature changes, it can cause water masses to expand or contract, which can affect the movement and direction of ocean currents.