Carcinogens can cause cancer by damaging DNA directly or by inducing chronic inflammation, which can lead to DNA mutations over time. When the genetic material within cells is altered, it can disrupt normal cell functions, leading to the development of cancerous cells.