Obese mice also have higher levels of deoxycholic acid, a product of bile acid alteration by certain gut microbes, and these microbes are increased with obesity. The excess deoxycholic acid causes DNA damage and inflammation in the liver, which, in turn, can lead to liver cancer. Other relevant aspects
Several liver diseases are due to viral infection. Viral hepatitides such as Hepatitis B virus and Hepatitis C virus can be vertically transmitted during birth via contact with infected blood. According to a 2012 NICE publication, "about 85% of hepatitis B infections in newborns become chronic". In occult cases, Hepatitis B virus is present by hepatitis B virus DNA, but testing for HBsAg is negative. High consumption of alcohol can lead to several forms of liver disease including alcoholic hepatitis, alcoholic fatty liver disease, cirrhosis, and liver cancer. In the earlier stages of alcoholic liver disease, fat builds up in the livers cells due to increased creation of triglycerides and fatty acids and a decreased ability to break down fatty acids. Progression of the disease can lead to liver inflammation from the excess fat in the liver. Scarring in the liver often occurs as the body attempts to heal and extensive scarring can lead to the development of cirrhosis in more advanced stages of the disease. Approximately 3–10% of individuals with cirrhosis develop a form of liver cancer known as hepatocellular carcinoma.
Liver biopsy can be performed to examine liver tissue to distinguish between various conditions; tests such as elastography may reduce the need for biopsy in some situations.In liver disease, prothrombin time is longer than usual. In addition, the amounts of both coagulation factors and anticoagulation factors are reduced as a diseased liver cannot productively synthesize them as it did when healthy. Nonetheless, there are two exceptions in this falling tendency: coagulation factor VIII and von Willebrand factor, a platelet adhesive protein. Both inversely rise in the setting of hepatic insufficiency, thanks to the drop of hepatic clearance and compensatory productions from other sites of the body. Fibrinolysis generally proceeds faster with acute liver failure and advanced stage liver disease, unlike chronic liver disease in which concentration of fibrinogen remains unchanged.A previously undiagnosed liver disease may become evident first after autopsy. Following are gross pathology images:

Treatment
Anti-viral medications are available to treat infections such as hepatitis B. Other conditions may be managed by slowing down disease progression, for example:

By using steroid-based drugs in autoimmune hepatitis. Regularly removing a quantity of blood from a vein (venesection) in the iron overload condition, hemochromatosis. Wilson’s disease, a condition where copper builds up in the body, can be managed with drugs that bind copper, allowing it to be passed from the body in urine. In cholestatic liver disease, (where the flow of bile is affected due to cystic fibrosis) a medication called ursodeoxycholic acid may be given. See also
Model for end-stage liver disease (MELD)

References
Further reading
Friedman, Lawrence S.; Keeffe, Emmet B. (2011-08-03).