Ion-channel gating, or stochastic fluctuation between an open and a closed state, is not fully understood at the atomic level. Analysis of the bacterial channel OmpA now suggests that one mode of gating depends on the switching of a salt bridge within the pore.