Answer:
A compass needle points north because it is a magnet that aligns itself and points toward the top of Earth's magnetic field. Earth's magnetic field is a zone where the force is active along imaginary lines that go from the south magnetic pole to the north magnetic pole. The needle is suspended so that it can spin freely and respond to the planet's magnetism.
The Earth's magnetic field is generated by the motion of molten iron in its core. The molten iron generates electric currents that create a magnetic field. The Earth's magnetic field is not constant and changes over time.