Certain infections are linked to an increased risk of cancer. For example, human papillomavirus (HPV) is associated with cervical cancer, while hepatitis B and C viruses can lead to liver cancer. Vaccination and safe practices can help prevent these infections, thereby reducing cancer risk.