Liver cancer generally develops in a multistep process. It often begins with chronic liver injury, which can be caused by hepatitis B or C infections, alcohol abuse, or non-alcoholic fatty liver disease (NAFLD). This chronic injury leads to inflammation and liver cell damage, eventually resulting in fibrosis and cirrhosis. Over time, the damaged liver cells can undergo genetic mutations that may lead to malignant transformation and cancer development.