Certain infections are linked to an increased risk of cancer. For example, human papillomavirus (HPV) is strongly associated with cervical and other types of cancers. Hepatitis B and C viruses can lead to liver cancer, while Helicobacter pylori infection is a risk factor for stomach cancer. Vaccinations and proper treatment of these infections can help reduce cancer risk.