This data article presents the raw data of a parallel two-arm randomized controlled trial investigating the preliminary effects of CBI on depression, anxiety, medication adherence, quality of life, and CD4 lymphocyte counts for PLWH in China. This evidence concerns the gene CD4 and major depressive disorder.