Minimum reaction sequence for hairpin ligation, consisting of substrate binding, the formation of a docked state requiring specific interactions between residues in loop A and B (dashed lines), and ligation between G(+1) and N(−1). All steps are reversible, with the equilibrium dependent on the energetics of substrate binding, the stability of the docked state, and the ribozyme catalyzed equilibrium between ligation and cleavage.