Magnetism is caused by electrons (the negative particles in atoms that are also electric charges) spinning. The more a group of electrons spin in the same direction, the stronger the magnetic force. In a magnet, many electrons are spinning in the same direction.