You can try this by placing one magnet on a table and slowly moving another magnet toward it. The magnet that is loose on the table turns to align with the magnet in your hand. If you stroke a piece of iron with a magnet, you gradually align the little magnetic domains, and the result is a larger magnet. Electric current is the flow of electrons through a conductor. A conductor is a material that lets the electrons hop from atom to atom when influenced by an outside force.
Electrons flowing through a conductor create a magnetic field around the conductor.
This is called electromagnetism. A stronger magnet can partially realign the magnetic domains of a weaker magnet. Many different substances can be made into permanent magnets. However, for all these materials, there is a critical temperature called the Curie point. At this temperature or above, the molecules within the material are moving around too much for the material to retain the magnetic alignment necessary to exhibit a magnetic field.