The primary source of energy that drives convection within the atmosphere and oceans is

a
the force of gravity from the Moon.
b
thermal energy from the Sun.
c
Earth's magnetic field.
d
Earth's gravity.

b) thermal energy from the Sun.