Gallstones can block the cystic duct, which can cause inflammation of the gallbladder. Gallstones can also block the common bile duct, which can cause inflammation of both the gallbladder and liver.