Bile is produced by the liver and stored in the gallbladder, a small organ near the underside of the liver. During meals, bile is released from the gallbladder through the common bile duct, which passes through the pancreas to connects the gallbladder and liver to the duodenum, the first part of the small intestine.