Liver cancer is a type of cancer that starts in the cells of the liver. It can be primary, meaning it starts in the liver, or secondary, meaning it spreads from another part of the body. The most common risk factors for liver cancer are chronic hepatitis B or C infection, excessive alcohol consumption, and non-alcoholic fatty liver disease.