A typical brake light circuit
The most common brake light switch is the simple mechanical type mounted close to the brake pedal arm.
When the pedal is depressed, the switch automatically closes to turn on the brake lights. The other type of switch works hydraulically and is operated by the pressure of fluid in the pipes when the brake is applied.