Gallstones can block the bile duct, preventing the flow of bile and causing intense pain and discomfort.