The ability of lymphocyte receptor V, D and J gene segments to rearrange generates much of the receptor diversity that is the hallmark of the immune system. Naturally, the mechanisms of immunoglobulin and T-cell receptor gene recombination are of enormous interest. Here, Fred Alt and colleagues review current understanding of the process and speculate on future findings.