What is a Electromagnet?

Electromagnet is a magnet which is activated when electricity is passed through it. Simple electromagnet can be formed by winding wire over soft iron. It is used to lift up heavy containers in Harbors and in relays.