Gallstone attacks are usually treated with surgery to remove the gallbladder. This is called cholecystectomy.