The needle of a compass is a small magnet and it lines up with the Earth's magnetic north and south.
(The needle of a compass; is; a small magnet) (it; lines up; L:with the Earth's magnetic north and south)
The needle of a compass it
is lines up
a small magnet
L:with the Earth's magnetic north and south