We report that IL-21 suppresses initial HIV-1 infection in lymphoid CD4 T cells and this antiviral activity was rapid, independent of cytotoxic effector T cells, but requires induction of cell-intrinsic miR-29. Here, IL21 is linked to HIV-1 infection.