The answer to 'switch keeps tripping' is that a tripping circuit breaker is usually caused by an overloaded or short-circuited electrical circuit. This can happen when too many devices are plugged into the same circuit, or if there's a problem with the wiring or a connected appliance.
Some common symptoms include the circuit breaker tripping repeatedly, lights flickering or dimming, or outlets not working. To solve the issue, you'll need to identify and fix the underlying cause, such as unplugging some devices, replacing a faulty appliance, or having an electrician inspect the wiring. DIY troubleshooting is possible for some basic problems, but it's generally best to call a licensed electrician if you're not comfortable working with electrical systems.