Terminal deoxynucleotidyl transferase (TdT) is an enzyme involved in the generation of diverse T cell and B cell antigen receptors during lymphocyte development. It plays a crucial role in the process of V(D)J recombination, which creates the immense diversity of T cell receptors and immunoglobulins necessary for adaptive immune responses.