An example is the trp gene in bacteria. When there is a high level of tryptophan in the region, it is inefficient for the bacterium to synthesize more. When the RNA polymerase binds and transcribes the trp gene, the ribosome will start translating. (This differs from eukaryotic cells, where RNA must exit the nucleus before translation starts.) The attenuator sequence, which is located between the mRNA leader sequence (5' UTR) and trp operon gene sequence, contains four domains, where domain 3 can pair with domain 2 or domain 4.
The attenuator sequence at domain 1 contains instruction for peptide synthesis that requires tryptophans. A high level of tryptophan will permit ribosomes to translate the attenuator sequence domains 1 and 2, allowing domains 3 and 4 to form a hairpin structure, which results in termination of transcription of the trp operon. Since the protein coding genes are not transcribed due to rho independent termination, no tryptophan is synthesised.
In contrast, a low level of tryptophan means that the ribosome will stall at domain 1, causing the domains 2 and 3 to form a different hairpin structure that does not signal termination of transcription. Therefore, the rest of the operon will be transcribed and translated, so that tryptophan can be produced.  Thus, domain 4 is an attenuator. Without domain 4, translation can continue regardless of the level of tryptophan. The attenuator sequence has its codons translated into a leader peptide, but is not part of the trp operon gene sequence. The attenuator allows more time for the attenuator sequence domains to form loop structures, but does not produce a protein that is used in later tryptophan synthesis.
Attenuation is a second mechanism of negative feedback in the trp operon. While the TrpR repressor decreases transcription by a factor of 70, attenuation can further decrease it by a factor of 10, thus allowing accumulated repression of about 700-fold. Attenuation is made possible by the fact that in prokaryotes (which have no nucleus), the ribosomes begin translating the mRNA while RNA polymerase is still transcribing the DNA sequence. This allows the process of translation to directly affect transcription of the operon.
At the beginning of the transcribed genes of the trp operon is a sequence of 140 nucleotides termed the leader transcript (trpL). This transcript includes four short sequences designated 1–4. Sequence 1 is partially complementary to sequence 2, which is partially complementary to sequence 3, which is partially complementary to sequence 4. Thus, three distinct secondary structures (hairpins) can form: 1–2, 2–3 or 3–4. The hybridization of strands 1 and 2 to form the 1–2 structure prevents the formation of the 2–3 structure, while the formation of 2-3 prevents the formation of 3–4. The 3–4 structure is a transcription termination sequence, once it forms RNA polymerase will disassociate from the DNA and transcription of the structural genes of the operon will not occur.
Part of the leader transcript codes for a short polypeptide of 14 amino acids, termed the leader peptide. This peptide contains two adjacent tryptophan residues, which is unusual, since tryptophan is a fairly uncommon amino acid (about one in a hundred residues in a typical E. coli protein is tryptophan). If the ribosome attempts to translate this peptide while tryptophan levels in the cell are low, it will stall at either of the two trp codons. While it is stalled, the ribosome physically shields sequence 1 of the transcript, thus preventing it from forming the 1-2 secondary structure. Sequence 2 is then free to hybridize with sequence 3 to form the 2-3 structure, which then prevents the formation of the 3-4 termination hairpin. RNA polymerase is free to continue transcribing the entire operon. If tryptophan levels in the cell are high, the ribosome will translate the entire leader peptide without interruption and will only stall during translation termination at the stop codon. At this point the ribosome physically shields both sequences 1 and 2. Sequences 3 and 4 are thus free to form the 3-4 structure which terminates transcription. The result is that the operon will be transcribed only when tryptophan is unavailable for the ribosome, while the trpL transcript is constitutively expressed.
To ensure that the ribosome binds and begins translation of the leader transcript immediately following its synthesis, a pause site exists in the trpL sequence. Upon reaching this site, RNA polymerase pauses transcription and apparently waits for translation to begin. This mechanism allows for synchronization of transcription and translation, a key element in attenuation.
A similar attenuation mechanism regulates the synthesis of histidine, phenylalanine and threonine.