Nitrogen metabolism in bacteria and archaea is regulated by a ubiquitous class of proteins belonging to the P II family. P II proteins act as sensors of cellular nitrogen, carbon, and energy levels, and they control the activities of a wide range of target proteins by protein-protein interaction. The sensing mechanism relies on conformational changes induced by the binding of small molecules to P II and also by P II posttranslational modifications. In the diazotrophic bacterium Azospirillum brasilense, high levels of extracellular ammonium inactivate the nitrogenase regulatory enzyme DraG by relocalizing it from the cytoplasm to the cell membrane. Membrane localization of DraG occurs through the formation of a ternary complex in which the P II protein GlnZ interacts simultaneously with DraG and the ammonia channel AmtB. Here we describe the crystal structure of the GlnZ-DraG complex at 2.1 Å resolution, and confirm the physiological relevance of the structural data by site-directed mutagenesis. In contrast to other known P II complexes, the majority of contacts with the target protein do not involve the T-loop region of P II . Hence this structure identifies a different mode of P II interaction with a target protein and demonstrates the potential for P II proteins to interact simultaneously with two different targets. A structural model of the AmtB-GlnZDraG ternary complex is presented. The results explain how the intracellular levels of ATP, ADP, and 2-oxoglutarate regulate the interaction between these three proteins and how DraG discriminates GlnZ from its close paralogue GlnB.N itrogen is an indispensable element for life. In bacteria and plants, many aspects of the regulation of nitrogen metabolism are controlled by a class of ubiquitous proteins called P II signal transduction proteins (1-4). P II proteins are present in all domains of life and are one of the most widely distributed signal transduction proteins in nature: some prokaryotes encode multiple P II homologues (2, 3). P II proteins act as a central processing unit receiving signals of carbon, energy, and nitrogen levels, integrating and transforming them into different P II conformational states. The multitude of P II conformations control their ability to interact with, and thus regulate the activity of, a variety of target proteins including transporters, enzymes, and transcriptional regulators (4). P II proteins form compact barrel-shaped homotrimeric structures, in which each monomer is 12-14 kDa containing three functionally important loops: the T-, B-, and C-loops (4). The 20-residue long T-loop is structurally very flexible and participates in protein interactions in all the structures of P II -target complexes solved to date. The T-loop also contains the site of posttranslational modification if it is needed. In Proteobacteria, Y51 in the T-loop is subjected to reversible uridylylation in response to the cellular glutamine levels (5). The effector molecules ATP, ADP, and 2-oxoglutarate (2-OG) influence the conformational states of P II pr...