The rights and left hepatic duct joins to form the common hepatic duct, which joins the cystic duct arising from gall bladder. The cystic duct and common hepatic duct joins to form common bile duct, which after joining the main pancreatic duct forms, hepatopancreatic ampulla. The ampulla opens into duodenum. This opening is guarded by sphincter of Oddi