Several risk factors can increase the likelihood of developing liver cancer. Chronic infection with hepatitis B and C viruses is a major risk factor. Other significant risk factors include heavy alcohol consumption, obesity, diabetes, and exposure to aflatoxins (toxins produced by certain molds found in food). Genetic factors and family history of liver disease also play a role in the risk for liver cancer.