ERCP combines endoscopy and X‑rays to examine and treat problems in the bile duct and pancreatic duct. Through the scope, we can inject contrast dye, take X‑rays, and perform therapies such as stone removal, sphincterotomy (small cut to open the duct), stent placement, or dilation.