The liver is one of the largest organs in the body. It has two lobes and fills the upper right side of the abdomen, inside the rib cage. The main functions of the liver are to filter harmful substances from the blood, to help digest fats in food and to store sugars which the body uses for energy.