Magnets have been known and used for navigation for centuries, with the ancient Greeks using a magnetic stone called magnetite. Magnetism is the force of attraction or repulsion between magnetic materials due to the arrangement of electrons in their atoms. The Earth itself acts as a large magnet, with a magnetic field strongest at its north and south magnetic poles. Other planets and the Sun also have magnetic fields extending into space.