Gram-negative bacteria utilize the type III secretion system (T3SS) to inject effector proteins into the host cell cytoplasm, where they subvert cellular functions and assist pathogen invasion. The conserved type III-associated ATPase is critical for the separation of chaperones from effector proteins, the unfolding of effector proteins and translocating them through the narrow channel of the secretion apparatus. However, how ATP hydrolysis is coupled to the mechanical work of the enzyme remains elusive. Herein, we present a complete description of nucleoside triphosphate binding by surface presentation antigens 47 (Spa47) from Shigella flexneri, based on crystal structures containing ATPγS, a catalytic magnesium ion and an ordered water molecule. Combining the crystal structures of Spa47-ATPγS and unliganded Spa47, we propose conformational changes in Spa47 associated with ATP binding, the binding of ATP induces a conformational change of a highly conserved luminal loop, facilitating ATP hydrolysis by the Spa47 ATPase. Additionally, we identified a specific hydrogen bond critical for ATP recognition and demonstrated that, while ATPγS is an ideal analog for probing ATP binding, AMPPNP is a poor ATP mimic. Our findings provide structural insight pertinent for inhibitor design.