relay
An electrically operated switch: a coil moves contacts that switch a separate circuit.
A relay's coil, energized by a transistor, closes or opens mechanical contacts that are electrically isolated from the coil circuit. The coil needs a flyback diode.