The SAMHD1-MX2 axis restricts HIV-1 infection at postviral DNA synthesis. Here, SAMHD1 is linked to HIV-1 infection.