Viral pathogens can contribute to cancer by inserting their genetic material into the host cells' DNA. This can disrupt normal cellular regulatory mechanisms, leading to uncontrolled cell growth and tumor formation. For example, HPV produces proteins that inhibit tumor suppressor genes, facilitating the development of cervical cancer.