Glutamine synthetase
Glutamine synthetase (GS) (EC 6.3.1.2) is an enzyme that plays an essential role in the metabolism of nitrogen by catalyzing the condensation of glutamate and ammonia to form glutamine:
Glutamate + ATP + NH3  Glutamine + ADP + phosphate
Glutamine Synthetase uses ammonia produced by nitrate reduction, amino acid degradation, and photorespiration. The amide group of glutamate is a nitrogen source for the synthesis of glutamine pathway metabolites.
Other reactions may take place via GS. Competition between ammonium ion and water, their binding affinities, and the concentration of ammonium ion, influences glutamine synthesis and glutamine hydrolysis. Glutamine is formed if an ammonium ion attacks the acyl-phosphate intermediate, while glutamate is remade if water attacks the intermediate.  Ammonium ion binds more strongly than water to GS due to electrostatic forces between a cation and a negatively charged pocket. Another possible reaction is upon NH2OH binding to GS, rather than NH4+, yields -glutamylhydroxamate.

# Structure
Glutamine Synthetase can be composed of 8, 10, or 12 identical subunits separated into two face-to-face rings. Bacterial GS are dodecamers with 12 active sites between each monomer. Each active site creates a tunnel which is the site of three distinct substrate binding sites: nucleotide, ammonium ion, and amino acid. ATP binds to the top of the bifunnel that opens to the external surface of GS. Glutamate binds at the bottom of the active site.  The middle of the bifunnel contains two sites in which divalent cations bind (Mn+2 or Mg+2). One cation binding site is involved in phosphoryl transfer of ATP to glutamate, while the second stabilizes active GS and helps with the binding of glutamate.
Hydrogen bonding and hydrophobic interactions hold the two rings of GS together. Each subunit possesses a C-terminus and an N-terminus in its sequence. The C-terminus (helical thong) stabilizes the GS structure by inserting into the hydrophobic region of the subunit across in the other ring. The N-terminus is exposed to the solvent. In addition, the central channel is formed via six four-stranded -sheets composed of anti-parallel loops from the twelve subunits.

# Mechanism
GS catalyzes the ATP-dependent condensation of glutamate with ammonia to yield glutamine. The hydrolysis of ATP drives  the first step of a two-part, concerted mechanism. ATP phosphorylates glutamate to form ADP and an acyl-phosphate intermediate, -glutamyl phosphate, which reacts with ammonia, forming glutamine and inorganic phosphate. ADP and Pi do not dissociate until ammonia binds and glutamine is released.
ATP binds first to the top of the active site near a cation binding site, while glutamate binds near the second cation binding site at the bottom of the active site. The presence of ADP causes a conformational shift in GS that stabilizes the -glutamyl phosphate moiety.  Ammonium binds strongly to GS only if the acyl-phosphate intermediate is present. Ammonium, rather than ammonia, binds to GS because the binding site is polar and exposed to solvent.  In the second step, deprotonation of ammonium allows ammonia to attack the intermediate from its nearby site to form glutamine. Phosphate leaves through the top of the active site, while glutamine leave through the bottom (between two rings).Goodsell, DS (June 2002). "Glutamine Synthetase". RCSB Protein Data Bank. Retrieved 8 May 2010..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output q{quotes:"\"""\"""'""'"}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-lock-free a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-subscription a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{display:none;font-size:100%}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}

# Biological function
GS is present predominantly in the brain, kidneys, and liver. GS in the brain participates in the metabolic regulation of glutamate, the detoxification of brain ammonia, the assimilation of ammonia, recyclization of neurotransmitters, and termination of neurotransmitter signals.  GS, in the brain, is found primarily in astrocytes. Astrocytes protect neurons against excitotoxicity by taking up excess ammonia and glutamate. In hyperammonemic environments (high levels of ammonia), astroglial swelling occurs. Different perspectives have approached the problem of astroglial swelling. One study shows that morphological changes occur that increase GS expression in glutamatergic areas or other adaptations that alleviates high levels of glutamate and ammonia. Another perspective is that astrocyte swelling is due to glutamine accumulation. To prevent increased levels of cortical glutamate and cortical water content, a study has been conducted to prevent GS activity in rats by the use of MSO.

# Classes
There seem to be three different classes of GS:
- Class I enzymes (GSI) are specific to prokaryotes, and are oligomers of 12 identical subunits. The activity of GSI-type enzyme is controlled by the adenylation of a tyrosine residue. The adenylated enzyme is inactive.
- Class II enzymes (GSII) are found in eukaryotes and in bacteria belonging to the Rhizobiaceae, Frankiaceae, and Streptomycetaceae families (these bacteria have also a class-I GS). GSII are decamer of identical subunits.PDB: 2OJW.
Plants have two or more isozymes of GSII, one of the isozymes is translocated into the chloroplast. Another form is cytosolic. The cytosolic GS gene translation is regulated by its 5' untranslated region (UTR), while its 3' UTR plays role in transcript turnover.
- Class III enzymes (GSIII) have, currently, only been found in Bacteroides fragilis and in Butyrivibrio fibrisolvens. It is a double-ringed dodecamer of identical chains. It is much larger (about 700 amino acids) than the GSI (450 to 470 amino acids) or GSII (350 to 420 amino acids) enzymes.
While the three classes of GSs are clearly structurally related, the sequence similarities are not so extensive.

# Regulation and inhibition
Regulation of GS only occurs in prokaryotes. GS is subject to reversible covalent modification. Tyr397 of all 12 subunits can undergo adenylylation or deadenylylation by adenylyl transferase (AT), a bifunctional regulatory enzyme. Adenylylation is a post-translational modification involving the covalent attachment of AMP to a protein side chain. Each adenylylation requires an ATP and complete inhibition of GS requires 12 ATP. Deadenylylation by AT involves phosphorolytic removal of the Tyr-linked adenylyl groups as ADP. AT activity is influenced by the regulatory protein that is associated with it: PII, a 44-kD trimer. PII also undergoes post-translational modification by uridylyl transferase, thus PII has two forms. The state of PII dictates the activity of adenylyl transferase. If PII is not uridylylated, then it will take on the PIIA form. The AT:PIIA complex will deactivate GS by adenylylation. If PII is uridylylated, then it will take on the PIID form. The AT:PIID complex will activate GS by deadenylylation. The AT:PIIA and AT:PIID complexes are allosterically regulated in a reciprocal fashion by -ketoglutarate (-KG) and glutamine (Gln). Gln will activate AT:PIIA activity and inhibits AT:PIID, leading to adenylylation and subsequent deactivation of GS. Furthermore, Gln favors the conversion of PIID to PIIA. The effects of -KG on the complexes are opposite. In the majority of gram-negative bacteria, GS can be modified by adenylylation (some cyanobacteria and green algae or exceptions).
Inhibition of GS has largely focused on amino site ligands. Other inhibitors are the result of glutamine metabolism: tryptophan, histidine, carbamoyl phosphate, glucosamine-6-phosphate, cytidine triphosphate (CTP), and adenosine monophosphate (AMP). Other inhibitors/regulators are glycine and alanine. Alanine, glycine, and serine bind to the glutamate substrate site. GDP, AMP, ADP bind to the ATP site. L-serine, L-alanine, and glycine bind to the site for L-glutamate in unadenylated GS. The four amino acids bind to the site by their common atoms, the main chain of amino acids. Glutamate is another product of glutamine metabolism; however, glutamate is a substrate for GS inhibiting it to act as a regulator to GS.2 Each inhibitor can reduce the activity of the enzyme; once all final glutamine metabolites are bound to GS, the activity of GS is almost completely inhibited. Many inhibitory input signals allows for fine tuning of GS  by reflecting nitrogen levels in the organism.
Feedback regulation distinguishes the difference between two eukaryotic types of GS: brain and non-brain tissues. Non-brain GS responds to end-product feedback inhibition, while brain GS does not.  High concentrations of glutamine-dependent metabolites should inhibit GS activity, while low concentrations should activate GS activity.
Inhibitors:
- Methionine sulfoximine (MSO): MSO is an inhibitor that binds to the glutamate site. Bound to GS, MSO is phosphorylated by ATP  that results in an irreversible, non-covalent inhibition of GS. The S-isomer configuration is more inhibitory. Glutamate entry is blocked into the active site by a stabilization of the flexible loop in the active site by MSO.
- Phosphinothricin: Phosphinothricin is an inhibitor that binds to the glutamate site. Glufosinate is used as an herbicide. Glufosinate treated plants die due to a buildup of ammonia and a cessation of photosynthesis.
- Many synthetic inhibitors are available today.
Research on E. coli revealed that GS is regulated through gene expression. The gene that encodes the GS subunit is designated glnA. Transcription of glnA is dependent on NRI (a specific transcriptional enhancer). Active transcription occurs if NRI is in its phosphorylated form, designated NRI-P. Phosphorylation of NRI is catalyzed by NRII, a protein kinase. If NRII is complexed with PIIA then it will function as a phosphatase and NRI-P is converted back to NRI. In this case, transcription of glnA ceases.
GS is subject to completely different regulatory mechanisms in cyanobacteria. Instead of  the common NtrC-NtrB two component system, cyanobacteria harbour the transcriptional regulator NtcA which is restricted to this clade and controls expression of GS and a multitude of genes involved in Nitrogen metabolism . Moreover, GS in Cyanobacteria is not covalently modified to raise sensitivity for feedback inhibition. Instead, GS in Cyanobacteria is inhibited by small proteins, termed GS inactivating factors (IFs) whose transcription is negatively regulated by NtcA.  These inactivating factors are furthermore regulated by different Non-coding RNAs: The sRNA NsiR4 interacts with the 5'UTR of the mRNA of the GS inactivating factor IF7 (gifA mRNA) and reduces its expression. NsiR4 expression is under positive control of the nitrogen control transcription factor NtcA. In addition, expression of the GS inactivating factor IF17 is controlled by a glutamine-binding riboswitch.