Voltage-dependent K+ (Kv) channels conduct K+ ions across the cell membrane in response to changes in the membrane voltage. The channels contain voltage sensors that allow them to open and close their ion conduction pore over narrow voltage ranges. The structure of the voltage-dependent K+ channel Kv1.2 reveals that the voltage sensors are essentially independent domains inside the membrane and suggests how they perform mechanical work to open and close the pore.