A toggle switch is a type of electrical switch that is actuated by moving a lever back and forth to open or close an electrical circuit.