A switch is a device used to open and close an electrical circuit. It controls the flow of electricity in a circuit by interrupting the current. Switches are usually operated by human beings, but can also be operated automatically by sensors or remotely by other devices.