An electrical switch that is operated by an electromagnet, such as a solenoid. When a small current passes through the electromagnet's coiled wire, it produces a magnetic field that attracts a movable iron bar, causing it to pivot and open or close the switch.