When you eat fatty foods, the gallbladder contracts. This pushes the bile into a tube called the cystic duct.