The recombination process that assembles antigen-receptor genes is now understood in some biochemical detail. The initial steps reflect a common theme seen in retroviral integration and prokaryotic transposition, and the later steps involve the enzymatic machinery for double-strand break DNA repair.