Exposure to environmental pollutants and human microbiome composition are important predisposition factors for tumour development1,2. Similar to drug molecules, pollutants are typically metabolized in the body, which can change their carcinogenic potential and affect tissue distribution through altered toxicokinetics3. Although recent studies demonstrated that human-associated microorganisms can chemically convert a wide range of xenobiotics and influence the profile and tissue exposure of resulting metabolites4,5, the effect of microbial biotransformation on chemical-induced tumour development remains unclear. Here we show that the depletion of the gut microbiota affects the toxicokinetics of nitrosamines, which markedly reduces the development and severity of nitrosamine-induced urinary bladder cancer in mice6,7. We causally linked this carcinogen biotransformation to specific gut bacterial isolates in vitro and in vivo using individualized bacterial culture collections and gnotobiotic mouse models, respectively. We tested gut communities from different human donors to demonstrate that microbial carcinogen metabolism varies between individuals and we showed that this metabolic activity applies to structurally related nitrosamine carcinogens. Altogether, these results indicate that gut microbiota carcinogen metabolism may be a contributing factor for chemical-induced carcinogenesis, which could open avenues to target the microbiome for improved predisposition risk assessment and prevention of cancer.