The protein encoded by this gene is an ATP-dependent DNA ligase that joins double-strand breaks during the non-homologous end joining pathway of double-strand break repair. It is also essential for V(D)J recombination. Lig4 forms a complex with XRCC4, and further interacts with the DNA-dependent protein kinase (DNA-PK) and XLF/Cernunnos, which are also required for NHEJ.