Gallstones can block the cystic duct, which takes bile to and from the gallbladder. This can cause inflammation of the gallbladder.