During V(D)J recombination, the coding ends to be joined are extensively modified. Those modifications, termed coding-end processing, consist of removal and addition of various numbers of nucleotides. We previously showed in vivo that coding-end processing is specific for each coding end, suggesting that specific motifs in a coding-end sequence influence nucleotide deletion and P-region formation. In this study, we created a panel of recombination substrates containing actual immunoglobulin and T-cell receptor coding-end sequences and dissected the role of each motif by comparing its processing pattern with those of variants containing minimal nucleotide changes from the original sequence. Our results demonstrate the determinant role of specific sequence motifs on coding-end processing and also the importance of the context in which they are found. We show that minimal nucleotide changes in key positions of a coding-end sequence can result in dramatic changes in the processing pattern. We propose that each coding-end sequence dictates a unique hairpin structure, the result of a particular energy conformation between nucleotides organizing the loop and the stem, and that the interplay between this structure and specific sequence motifs influences the frequency and location of nicks which open the coding-end hairpin. These findings indicate that the sequences of the coding ends determine their own processing and have a profound impact on the development of the primary B-and T-cell repertoires.The large repertoire of immunoglobulin (Ig) and T-cell receptor (TCR) variable regions is generated during V(D)J recombination by two main sources of diversity (34). Combinatorial diversity derives from the assembly of one of the many variable (V), diversity (D), and joining (J) gene segments to form a V(D)J exon and, subsequently, from the pairing of the two chains of the heterodimeric receptor. Junctional diversity is created by extensive nucleotide modification at the junctions during the assembly of the gene segments. V(D)J recombination is therefore the earliest mechanism generating diversity in the primary B-and T-cell repertoires.The proper rearrangement of the various gene segments requires the presence of recombination signal sequences (RSS) adjacent to each coding segment. This signal consists of conserved heptamer and nonamer sequences separated by a nonconserved spacer region of 12 or 23 bp (called 12-bp RSS and 23-bp RSS, respectively) (1, 12). The initial DNA break is performed by the RAG1-RAG2 complex, which binds to the RSS and makes a single-strand cut at the 5Ј end of the heptamer at the precise border of the coding end and the RSS (23). The phosphodiester bond of the complementary strand opposite to the initial nick is then attacked by direct transesterification, resulting in a covalently sealed hairpin coding end and a blunt signal end.To proceed through the recombination process, the DNA hairpins formed by the coding ends have to be resolved into free ends, which is presumably done by double-or singlestra...