Granuloma is a crucial pathological feature of tuberculosis (TB). The relationship between CD4+ T cells in both peripheral blood and granulomatous tissue, and the integrity of granulomas in Human Immunodeficiency Virus (HIV)–MTB co-infection, remains unexplored. This study collected biopsy specimens from 102 TB patients (53 with HIV-MTB co-infection and 49 only with TB). Hematoxylin and eosin (HE) staining and immunohistochemical staining were performed, followed by microscopic examination of the integrity of tuberculous granulomas. Through statistical analysis of peripheral blood CD4+ T cell counts, tissue CD4+ T cell proportion, and the integrity of granulomas, it was observed that HIV infection leads to poor formation of tuberculous granulomas. Peripheral blood CD4+ T cell counts were positively correlated with granuloma integrity, and there was a similar positive correlation between tissue CD4+ T cell proportions and granuloma integrity. Additionally, a positive correlation was found between peripheral blood CD4+ T cell counts and the proportion of CD4+ T cells in granuloma tissues. Therefore, HIV infection could impact the morphology and structure of tuberculous granulomas, with a reduced proportion of both peripheral blood and tissue CD4+ T lymphocytes.