The sun provides the primary source of energy driving ocean currents through heating the surface waters unevenly, with the greatest heating at the equator. Density differences created by variations in temperature and salinity are the main factors influencing ocean circulation patterns. Water properties like temperature, salinity, and density only change at the surface of the ocean and create distinct water masses.