Currents on the surface are determined by three major factors: the major overall global wind patterns, the rotation of the Earth, and the shape of ocean basins.
The factors that create oceans currents are wind, water density, ocean topography, and coriolis effect