Liver cells produce bile, which flows into small channels called bile canaliculi. These small channels drain into bile ducts. The ducts join to form larger and larger channels and eventually form the left and right hepatic ducts, which join to form the common hepatic duct. The common hepatic duct joins with a duct connected to the gallbladder, called the cystic duct, to form the common bile duct. The common bile duct is joined by the pancreatic duct just before it enters the small intestine at the sphincter of Oddi.