Relay is operated by an electric switch. The current flowing through the relay coil creates a magnetic field that pulled the lever and change the switch contacts. Coil current can be on or off so relays have two switch positions, and most have double throw (changeover) switch contacts as shown in the diagram.