The recombination-activating gene 1 (RAG1) and RAG2 proteins initiate V(D)J recombination, the process that assembles the B-and T-lymphocyte antigen receptor genes of jawed vertebrates. RAG1 and RAG2 are thought to have arisen from a transposable element, but the origins of this element are not understood. We show that two ancestral RAG1 proteins, Transib transposase and purple sea urchin RAG1-like, have a latent ability to initiate V(D)J recombination when coexpressed with RAG2 and that in vitro transposition by Transib transposase is stimulated by RAG2. Conversely, we report low levels of V(D)J recombination by RAG1 in the absence of RAG2. Recombination by RAG1 alone differs from canonical V(D)J recombination in having lost the requirement for asymmetric DNA substrates, implicating RAG2 in the origins of the "12/23 rule," a fundamental regulatory feature of the reaction. We propose that evolution of RAG1/RAG2 began with a Transib transposon whose intrinsic recombination activity was enhanced by capture of an ancestral RAG2, allowing for the development of adaptive immunity. V(D)J recombination is the process by which the antigen receptor genes of jawed vertebrates are assembled. By joining different combinations of variable (V), diversity (D), and joining (J) gene segments, V(D)J recombination can generate a wide range of receptor specificities, providing the molecular basis for adaptive immunity. The proteins at the heart of this reaction are encoded by recombination-activating gene 1 (RAG1) and RAG2 (Schatz et al. 1989;Oettinger et al. 1990). The RAG1 and RAG2 proteins bind to recombination signal sequences (RSSs) that demarcate the gene segments of the antigen receptor loci and target dsDNA cleavage by RAG. Subsequent repair by the nonhomologous end-joining DNA repair pathway joins the gene segments to form coding joints and the cleaved RSSs to form signal joints (Rooney et al. 2004). The RSS consists of three sequence elements: the nonamer, the spacer, and the heptamer. While the nonamer and the heptamer sequences are well conserved, the length of the spacer, either 12 or 23 base pairs, is its defining characteristic (Ramsden et al. 1994). Therefore, two types of RSS exist depending on spacer length, the 12RSS and the 23RSS, and recombination is only efficient when one 12RSS and one 23RSS are engaged by RAG, a restriction known as the 12/23 rule.Because RAG1-deficient and RAG2-deficient mice and humans exhibit identical phenotypes characterized by a complete absence of V(D)J recombination and lymphocyte development (Mombaerts et al. 1992;Shinkai et al. 1992;Notarangelo et al. 1999), the two RAG proteins are each presumed to be essential for V(D)J recombination. Despite this, RAG1 and RAG2 play vastly different roles in the DNA cleavage reaction. RAG1 contains the RNaseH fold catalytic domain and regions that make direct contact with the RSS and is responsible for the enzymatic activity of the RAG complex (Schatz and Swanson 2011;Kim et al. 2015;Ru et al. 2015). In contrast, RAG2 interacts with and enhances...