The bile produced in the liver is carried by the bile ducts to the 2nd part of the duodenum. Bile is produced continuously in the liver and is stored and concentrated in the gallbladder, which releases it intermittently when fat reaches the duodenum.
Intrahepatic biliary tract
The distribution of the intrahepatic bile ducts generally follows the arrangement of the portal vein and the hepatic artery. Thus, two biliary "trees" can be distinguished, right and left, each of which converges to form the right and left hepatic ducts, which drain bile from their respective lobes towards the hepatic hilum.

Extrahepatic biliary tract
The right and left hepatic ducts emerge and join at the hepatic hilum. Here the extrahepatic biliary tract begins, comprising the main and accessory biliary tracts.
The two hepatic ducts unite to form the common hepatic duct. This duct receives the cystic duct and, together, they form the common bile duct, which opens into the duodenum.
Two parts can be distinguished:
- The accessory biliary tract, which comprises the gallbladder and the cystic duct.
- The main biliary tract, which is formed by the common hepatic duct and the common bile duct (hepatocholedochal duct).
The main biliary tract (hepatocholedochal duct)
Its course begins at the hepatic hilum and ends in the duodenum. It is 8-10 cm long and has an average diameter of 6 mm.
Along its course, different parts can be distinguished, with different relations.
Supraduodenal part
First the hepatic duct and then the common bile duct (in the initial part of its course) run along the free border of the lesser omentum, lying in front of the portal vein and to the right of the hepatic artery, forming the hepatic pedicle. The hepatic pedicle helps to delimit the omental foramen (foramen of Winslow) anteriorly, which separates it from the inferior vena cava.

Retroduodenal and retropancreatic parts
The common bile duct then leaves the lesser omentum and passes successively behind the duodenum and the head of the pancreas, and then enters the substance of the gland, becoming intrapancreatic. As a result, cancers and inflammation of the pancreas can obstruct the biliary tract and prevent the normal passage of bile into the duodenum.

Terminal part
In its final part, the common bile duct joins the main pancreatic duct and, together, they pass through the posteromedial wall of the 2nd part of the duodenum (intramural segment) and open into the hepatopancreatic ampulla (of Vater), a small dilatation in the muscular wall of the duodenum that protrudes into its lumen (the major duodenal papilla or caruncle). At this level lies the sphincter of the hepatopancreatic ampulla (of Oddi): a smooth muscle structure that surrounds the ends of the bile and pancreatic ducts, belonging to the smooth muscle of the duodenum but functioning independently. Three parts can be recognised in this sphincter:
- the sphincter of the common bile duct.
- the pancreatic sphincter.
- the common intraduodenal sphincter, thicker and adjacent to the preceding two, which opens and closes the duodenal papilla.


Source: Netter ®
The accessory biliary tract comprises the gallbladder and the cystic duct.
Gallbladder
It is a fibromuscular reservoir that occupies the fossa for the gallbladder on the visceral surface of the liver.
It is pear shaped and in adults measures 8-10 cm in length and 3-4 cm in width.
It has a fundus, which projects beyond the inferior border of the liver; a cylindrical body; and a neck, from the base of which the cystic duct emerges.

The gallbladder is applied to the liver and covered by the peritoneum that covers the visceral surface of the liver.
Besides the liver, the gallbladder is related inferiorly to the duodenum (through the peritoneum). This relation is so close that peritoneal adhesions often form, and cholecystoduodenal fistulas can occur, created by gallstones in contact with the wall of the gallbladder and duodenum eroding it, so that the stones can pass into the small intestine.

In general, the gallbladder stores the bile secreted by the liver between the active phases of digestion and concentrates it. The contraction of the gallbladder and the release of bile into the intestine are controlled by hormonal mechanisms related to fat intake.
If the gallbladder contains gallstones, when it contracts it may expel one of them, which causes pain in the epigastric region known as biliary colic. If a stone becomes trapped in the cystic duct, the gallbladder is likely to become inflamed (acute cholecystitis), with pain in the right hypochondrium. In this case, since bile cannot leave the gallbladder, it passes into the blood and produces jaundice (a yellowish discoloration of the eyes and skin).
Cystic duct
It extends from the gallbladder to the main biliary tract. It is 3-4 cm long and about 3-5 mm wide. It runs to the left until it reaches the hepatic duct, with which it joins to form the common bile duct.
