An electromagnet is a temporary magnet that acts as a magnet when an electric current is passed through a copper wire and loses its magnetism when an electric current is passed through it.
Electromagnet is made of a good conductor of up and copper is a good conductor.
Copper is the best material for the electromagnet instead of all materials.