CD4 and HIV infectious disease: HIV infection compromises immune function primarily by depleting CD4+ T-cell counts, which are pivotal in controlling Mycobacterium tuberculosis in latent infections.