With liver disease, as always, prevention is the key. All the most serious liver conditions—liver cancer, liver failure, and cirrhosis—can start with an inflamed liver. That inflammation can be caused by an infection or the buildup of fatty deposits. Liver viruses can be prevented by common-sense measures. Don’t inject drugs, do get vaccinated, and do practice safe sex. Liver fat can also be prevented by common sense measures: Avoid excess consumption of alcohol, calories, cholesterol, saturated fat, and sugar.