A relay is an electrically operated switch that uses electromagnets to mechanically operate contacts and can control one circuit using a separate low-power signal. Relays were initially used in telegraph circuits to amplify and repeat signals. A basic electromagnetic relay consists of a coil, iron core, movable armature, and contacts. Relays are used where signal or power isolation is needed, such as controlling high power circuits with low power signals.