There has been very limited investigation regarding the genetic diversity of Mycobacterium tuberculosis (MTb) strains isolated from human immunodeficiency virus (HIV)-infected patients in Mexico. In this study, we isolated 93 MTb strains from pulmonary and extrapulmonary samples of HIV-infected patients treated in a public hospital in Mexico City to evaluate the genetic diversity using spoligotyping and mycobacterial interspersed repetitive unit-variable-number tandem-repeat (MIRU-VNTR) typing (based on 24 loci). The cohort comprised 80 male and 13 female individuals. There was a positive correlation between a high HIV viral load (>100,000 copies) and extrapulmonary tuberculosis (TB) (r = 0.306, p = 0.008). Lineage 4 was the most frequent lineage (79 strains). In this lineage, we found the H clade (n = 24), including the Haarlem, H3, and H1 families; the T clade (n = 22), including T1 and T2; the X clade (n = 15), including X1 and X3; the LAM clade (n = 14), including LAM1, LAM2, LAM3, LAM6, and LAM9; the S clade (n = 2); Uganda (n = 1); and Ghana (n = 1). We also found 12 strains in the EAI clade belonging to lineage 1, including the EAI2-Manila and EAI5 families. Interestingly, we identified one strain belonging to the Beijing family, which is part of lineage 2. One strain could not be identified. This study reports high genetic diversity among MTb strains, highlighting the need for a molecular epidemiological surveillance system that can help to monitor the spread of these strains, leading to more appropriate measures for TB control in HIV-infected patients.