Another risk factor for some cancers is being infected with certain viruses and bacteria. Examples are:  Human papillomaviruses, or HPV. These are the main cause of cervical cancer. Hepatitis B and C viruses. These can lead to liver cancer. Human immunodeficiency virus, or HIV. This raises the risk for lymphoma.