Liver, the largest gland in the body, a spongy mass of wedge-shaped lobes that has many metabolic and secretory functions. The liver secretes bile, a digestive fluid; metabolizes proteins, carbohydrates, and fats; stores glycogen, vitamins, and other substances; synthesizes blood-clotting factors;