Endoscopy of the bile ducts and pancreas is a minimally invasive procedure that used to examine the bile and pancreatic ducts. ERCP is a common technique used in this context, as it combines endoscopy with X-ray imaging to provide detailed images of the bile and pancreatic ducts. This allows to identify and treat issues such as blockages, strictures, and tumors. The procedure is performed by passing the endoscope through the mouth and into the duodenum, where it can inject a contrast dye to make the ducts visible on X-rays. ERCP can also be used to remove gallstones, place stents to open blocked ducts, or dilate narrowed areas