This study provides an effective approach to create a CXCR4 mutation with HIV-1 infection inhibition function and without leaving any genetic footprint inside cells, thereby shedding light on an application in HIV-1 gene therapy and avoiding side effects caused by deficiency or destruction of CXCR4 function. Here, CXCR4 is linked to HIV-1 infection.