ERCP is an endoscopic procedure that combines endoscopy and fluoroscopy to diagnose and treat issues in the duodenum, bile ducts, pancreatic duct, and gallbladder. During ERCP, an endoscope is inserted and a catheter is used to inject radiocontrast dye to identify any blockages. If needed, a wire can enlarge the opening to the bile duct to remove gallstones or perform other procedures like stent placement. Potential but rare complications include infection, pancreatitis, bleeding, and perforation of the GI tract. ERCP requires an experienced physician due to its risks.