Magnetism is a fundamental force in nature, characterized by the attraction or repulsion between objects with magnetic properties. This force is due to the motion of electric charge within the atoms of the material. The most familiar form of magnetism is the interaction between iron and other materials containing iron, such as steel. The Earth itself is a giant magnet, with its magnetic field aligned along its axis of rotation.
There are three main types of magnets:
A magnetic field is the region around a magnet where the magnetic force is experienced. The field is strongest close to the magnet and diminishes as you move further away. The direction of the magnetic field is conventionally indicated by lines of force that point from the north pole to the south pole outside the magnet and from the south pole to the north pole inside the magnet.