The number of therapeutic endoscopic procedures in elderly individuals keeps increasing and this population has a high risk of adverse events related to sedation and general anesthesia. However, there is a paucity on data about the efficacy and safety of endoscopic retrograde cholangiopancreatography (ERCP) in this population. In total, 417 consecutive ERCP procedures were performed in 362 patients between September 2018 and January 2020. Of these, 59 patients (74 sessions) were aged ≥80 years (Group A) and 173 patients (193 procedures) were aged ≤65 years (Group B). We analyzed the prospectively collected data of patient- and procedure-related variables. The procedure time was significantly longer in Group A (P < 0.05). The prevalence of comorbidities, use of anticoagulants and American Society of Anesthesiologists (ASA) physical status classification levels were significantly higher in Group A (P < 0.05). The incidence of periampullary diverticula, malignancy, rate of difficult cannulation, mean number of stones, use of biliary stents and stent dysfunction was also significantly higher in Group A (P < 0.05). The medication doses used were significantly higher and emergence symptoms were significantly more frequent in Group B (P < 0.05). The rates of bleeding, pancreatitis, perforation, cholangitis, hypoxia, hypotension and the length of hospital stay did not significantly differ between the two groups. The overall success rate of the procedure was comparable in the two groups (P=0.874). ERCP can be safely performed in elderly patients using a combination of midazolam and ketamine without propofol. The incidence of complications is comparable with that observed in younger patients. Geriatr Gerontol Int 2021; 21: 887-892.