A circuit breaker is an automatically operated electrical switch designed to protect an electrical circuit from damage caused by excess current, such as those resulting from overloads or short circuits. These devices monitor the flow of current within a circuit, and when the measured current surpasses a predetermined safe threshold, the breaker trips, opening the circuit and interrupting the flow of electricity. This immediate interruption prevents overheating of wires, damage to appliances, and potentially hazardous electrical fires. Different types of breakers utilize various mechanisms, such as thermal elements reacting to sustained current increases or magnetic elements reacting to sudden, massive surges, ensuring the integrity and safety of the electrical system.