This Review article discusses the importance of secondary gene rearrangements in the alteration of antigen-receptor specificity by B cells and T cells, and describes how this process is facilitated by the different genomic organization of the loci that encode the two antigen-receptor chains.