Simple Electromagnet Graphic Electromagnets play an essential role in the operation of generators, motors, transformers, and relays. Electromagnets are constructed by wrapping an insulated conductor wire around an iron object, like a large nail, and then passing an electrical current through the wire. The strength of the electromagnet depends on the number of wraps, the size of the wire, and the amount of current flowing through the wire.