A cholecystectomy is a surgical procedure to remove the gallbladder, a small organ located beneath the liver that stores bile. This procedure is typically performed when the gallbladder becomes diseased or contains gallstones. However, in the context of cancer, a cholecystectomy can be critical for treating or preventing the spread of gallbladder cancer.