The main purpose of using electromagnets in electric bells is to make and break the electric circuit in an electric bell. When the switch is on, the electric current flows through the circuit, allowing the electromagnet to pull the iron strip, which makes the hammer, hit the gong to ring the bell. As soon as the iron strip gets attracted to the electromagnet, it moves away from the screw causing the circuit to break. When the circuit breaks, the electric current stops which turns off the electromagnet. The iron strip, again come back to its original position and touches the screw. This in turn closes the circuit, allowing the current to pass through it.