In this work, a mathematical model for the human immunodeficiency virus (HIV) infection of CD4+ T-cells by using the optimal perturbation iteration method (OPIM) is analyzed. Optimization and classical perturbation techniques are combined to build the new proposed method. The iteration algorithm for systems of nonlinear differential equations for this optimal perturbation iteration technique is constructed for the first time. A test problem has been solved and some plots are given to show the reliability and efficiency of the proposed method. Obtained results exhibit the effectiveness and accuracy of the semi-analytical technique.Publisher's Versio