•Prestimulation of CD2 rendered resting T cells highly resistant to HIV infection. Here, CD2 is linked to HIV infectious disease.