We used DNA fingerprinting to analyse tuberculosis (TB) epidemiology in immigrant patients living in two major northern Italian urban areas. The study population included 1999 TB patients (1500 Italian-born and 499 immigrants). Univariate and multivariate logistic regression models were used to identify risk factors related to clustering similar proportions of immigrant and Italian-born patients (46%) had infection with TB strains that belonged to genetic clusters. This supports the hypothesis that the disease in foreign patients is more likely to have arisen from reactivation of latent infection acquired in the country of origin than from recent transmission. Gender, age, human immunodeficiency virus infection and drug resistance were not significantly linked to TB clustering. Risk factors associated with strain clustering were country of origin (Somalia, adjusted OR (AOR) 3.19, p 0.017; Peru, AOR 2.86, p 0.014; and Senegal, AOR 2.60, p 0.045) and city of residence. Immigrant status in the larger urban area was an independent risk factor for infection with clustered TB, as reinforced by a subanalysis of the Senegalese group. In conclusion, variations in TB transmission were observed among immigrants from different countries and even within national groups, where living conditions have been found to exert a profound impact. These results emphasize the importance of improving social integration of immigrant subjects in order to limit risks of TB transmission in developed countries.