Voltage-gated sodium (NaV) channels control excitable cell functions. While structural investigations have revealed conformation details of different functional states, the mechanisms of both activation and slow inactivation remain unclear. Here, we identify residue T140 in the S4-S5 linker of the bacterial voltage-gated sodium channel NaChBac as critical for channel activation and drug effects on inactivation. Mutations at T140 either attenuate activation or render the channel nonfunctional. Propofol, a clinical anesthetic known to inhibit NaChBac by promoting slow inactivation, binds to a pocket between the S4-S5 linker and S6 helix in a conformation-dependent manner. Using 19F-NMR to quantify site-specific binding by saturation transfer differences (STDs), we found strong STDs in inactivated, but not activated, NaChBac. Molecular dynamics simulations show a highly dynamic pocket in the activated conformation, limiting STD buildup. In contrast, drug binding to this pocket promotes and stabilizes the inactivated states. Our results provide direct experimental evidence showing distinctly different associations between the S4-S5 linker and S6 helix in activated and inactivated states. Specifically, an exchange occurs between interaction partners T140 and N234 of the same subunit in activation, and T140 and N225 of the domain-swapped subunit in slow inactivation. The drug action on slow inactivation of prokaryotic NaV channels seems to have a mechanism similar to the recently proposed "door-wedge" action of the isoleucine-phenylalanine-methionine (IFM) motif on the fast inactivation of eukaryotic NaV channels. Elucidating this gating mechanism points to a possible direction for conformation-dependent drug development.