The sun is the main source of energy for the Earth and a large part of Earth’s climate is made up from the movement of air and ocean currents around the globe. These motions redistribute the heat (energy) around the globe. The ocean and atmosphere do not remain constant, and heat and moisture are continually exchanged between them. The ocean and atmosphere are not independent of each other, but instead interact to influence weather and climate patterns.
Source: NASA Captures "EPIC" Earth Image | NASA