The moon's gravity primarily, and to a lesser degree the sun's gravity, act on Earth's oblateness to move the axis perpendicular to the plane of Earth's orbit.
(the sun's gravity; act; on Earth's oblateness)
the sun's gravity
act
on Earth's oblateness