Stem-loop intramolecular base pairing is a pattern that can occur in single-stranded DNA or, more commonly, in RNA. The structure is also known as a hairpin or hairpin loop. It occurs when two regions of the same molecule, usually palindromic (reads the same in both directions, for example AAGC in one direction would read TTCG in the other and it would be a palindrome in relation to a DNA) in nucleotide sequence, base-pair to form a double helix that ends in an unpaired loop. The resulting lollipop-shaped structure is a key building block of many RNA secondary structures.
The stability of the loop also influences the formation of the stem-loop structure. "Loops" that are less than three bases long are sterically impossible and do not form. Large loops with no secondary structure of their own (such as pseudoknot pairing) are also unstable. Optimal loop length tends to be about 4-8 bases long. One common loop with the sequence UUCG is known as the "tetraloop" and is particularly stable due to the base-stacking interactions of its component nucleotides.
Many ribozymes also feature stem-loop structures. The self-cleaving hammerhead ribozyme contains three stem-loops that meet in a central unpaired region where the cleavage site lies. The hammerhead ribozyme's basic secondary structure is required for self-cleavage activity.
Stem-loop structures are also important in prokaryotic rho-independent transcription termination. The hairpin loop forms in an mRNA strand during transcription and causes the RNA polymerase to become dissociated from the DNA template strand. This process is known as rho-independent or intrinsic termination, and the sequences involved are called terminator sequences.
---CCTGCXXXXXXXGCAGG---
can form the following hairpin structure
---C G---
C G
T A
G C
C G
X X
X X
X X
X
A longer example of a 5' → 3' sequence of RNA which would lead to a hairpin loop structure is:
GCCGCGGGCCGAAAAAACCCCCCCGGCCCGCGGC