Hepatitis B virus (HBV) and hepatitis C virus (HCV) are major risk factors for developing HCC. Chronic infection with these viruses can lead to liver inflammation, fibrosis, and eventually cirrhosis, which significantly increases the risk of HCC. HBV is particularly associated with HCC even in the absence of cirrhosis, making it a critical target for prevention strategies.