Here, we reveal that components of the nuclear pore complex, and nuclear import machinery, are required for MX2-dependent inhibition of HIV-1 infection. This evidence concerns the gene MX2 and HIV-1 infection.