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