Chronic hepatitis infection, particularly from Hepatitis B Virus (HBV) and Hepatitis C Virus (HCV), significantly increases the risk of developing liver cancer, specifically hepatocellular carcinoma (HCC). Persistent inflammation and liver cell damage caused by these viruses can lead to cirrhosis, which is a major risk factor for liver cancer.