when electricity flows through a wire, it makes a weak magnetic field around it. if the wire is wrappet into a coil,the magnetism becomes stronger. this is called an electromagnet.its magnetic force is the same as an ordinary magnet,but when the electricity gose off, the magnetism does too.some electromagnets are so strong,they can lift wholecars.