How does the gravity affect ocean currents?

Gravity will tend to pull the water down the "hill" or pile of water against the pressure gradient.