Illustration of the liver, the liver is the largest gland in the human body. It is located in the right upper abdomen, below the diaphragm. It has the following functions: production and excretion of bile, regulation of protein, fat and carbohydrate metabolism, storage of glycogen, detoxification of the body.