Concepts · Transistors as switches

A small current steers a big one

A bipolar transistor lets a tiny current control a much larger one, which is why a microcontroller pin can run a buzzer or relay.