The structure of Ap(4)A hydrolase complexed with ATP-MgF(x) reveals the basis of substrate binding.