Some types of cancer can be triggered by infection by certain viruses. For example, infection with some types of hepatitis virus can cause long-term infections in the liver, where the virus lives in the cells. This can lead to an increased chance of developing liver cancer. Another example is infection with HPV (human papilloma virus), which can cause cervical cancer in women.