“Your digestive system is a group of connected organs that work together to turn the food you eat into nutrients your body needs to function. It includes your biliary system—your gallbladder, liver, and pancreas—and your digestive tract.
Digestion is the complicated process of turning the food you eat into nutrients, which your body uses for energy, growth, and cell repair. The digestion process also involves creating waste to be eliminated from your body.
The liver lies under your right ribs just beneath your right lung. It has two lobes (sections).
The liver performs many important functions, such aiding in digestion, blood clotting and breaking down alcohol, drugs, and toxic wastes in the blood, which then pass from the body through urine and stool.
The pancreas sits behind the stomach. Most of the pancreas is made up of exocrine cells which make pancreatic enzymes that help digest foods (especially fats). The rest of the pancreas is made up of endocrine cells which make important hormones like insulin and glucagon (which help control blood sugar levels).
The bile ducts are thin tubes that go from the liver to the small intestine.”
WEB MD (Digestive System (Anatomy): How It Works)