The Escherichia coli isocitrate dehydrogenase kinase/phosphatase (AceK) is a bifunctional enzyme that can phosphorylate or dephosphorylate isocitrate dehydrogenase (ICDH) to either inactivate or activate it in response to environmental changes. Now the structures of AceK and the AceK–ICDH complex have been solved, revealing the conformational changes that occur when AceK changes from a kinase to a phosphatase and vice versa.