The bacterial Sec translocon is a multi-component protein complex responsible for translocating diverse proteins across the plasma membrane. For post-translational protein translocation, the Sec-channel – SecYEG – associates with the motor protein SecA to mediate the ATP-dependent transport of unfolded pre-proteins across the membrane. Based on the structure of the machinery, combined with ensemble and single molecule analysis, a diffusional based Brownian ratchet mechanism for protein secretion has been proposed [Allen et al. eLife 2016;5:e15598]. However, the conformational dynamics required to facilitate this mechanism have not yet been fully resolved. Here, we employ hydrogen-deuterium exchange mass spectrometry (HDX-MS) to reveal striking nucleotide-dependent conformational changes in the Sec protein-channel. In addition to the ATP-dependent opening of SecY, reported previously, we observe a counteracting, also ATP-dependent, constriction of SecA around the mature regions of the pre-protein. Thus, ATP binding causes SecY to open and SecA to close, while ATP hydrolysis has the opposite effect. This alternating behaviour could help impose the directionality of the Brownian ratchet for protein transport through the Sec machinery, and possibly in translocation systems elsewhere. The results highlight the power of HDX-MS for interrogating the dynamic mechanisms of diverse membrane proteins; including their interactions with small molecules such as nucleotides (ATPases and GTPases) and inhibitors (e.g. antibiotics).