 Treating the cause of cirrhosis prevents further damage; for example, giving oral antivirals such as entecavir and tenofovir in patients of cirrhosis due to Hepatitis B prevents progression of cirrhosis.Similarly, control of weight and diabetes prevents deterioration in cirrhosis due to Non-alcoholic steatohepatitis.If complications cannot be controlled or when the liver ceases functioning, liver transplantation is necessary.