A relay is an electrically operated switch that is used to turn on or off a circuit by a small electrical signal, which is usually not enough to directly activate the switch.