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