The compass needle points to the magnetic north as the earth acts as if it is a large bar magnet.
(it; is; a large bar magnet) (The compass needle; points; to the magnetic north as the earth)
it The compass needle
is points
a large bar magnet
to the magnetic north as the earth