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