Objective To investigate the characteristics of population and the changes of disease spectrum in patients treated by endoscopic retrograde cholangiopancreatography (ERCP) . Methods Data of 20 170 patients, who underwent ERCP in the First People′s Hospital of Hangzhou from May 2004 to February 2018, were enrolled in the retrospective analysis. According to the year of diagnosis and treatment, patients were divided into 2004-2008, 2009-2013, and 2014-2018 group; according to the postoperative diagnosis of ERCP, they were divided into biliary tract diseases (including calculus, benign stenosis, malignant stenosis, and other causes) and pancreatic diseases (including acute pancreatitis, chronic pancreatitis, pancreatic malignant tumor, and other causes) group; and according to the age, they were divided into the younger age (0-18 years old) , young and middle age (19-65 years old) , old age (66-85 years old) , and advanced age (>85 years old) group. Statistical analysis was performed in the different groups. Results Among the 20 170 patients, there were 10 260 males and 9 910 females, with age of 62.65±17.11 years. The proportion of the younger age group and the advanced age group was 1.04% (24/2 308) , 1.69% (127/7 520) , 2.39% (247/10 342) , and 2.95% (68/2 308) , 4.19% (315/7 520) , 6.15% (636/10 342) , respectively, in the 2004-2008, 2009-2013 and 2014-2018 subgroups, with a rising trend (P<0.017) . A total 20 032 patients had a clear postoperative diagnosis, including 15 618 (77.97%) of biliary diseases and 4 414 (22.03%) of pancreatic diseases. Biliary stones accounted for the majority of biliary diseases (63.2%, 9 863/15 618) , and its proportion increased from 59.9% (1 191/1 987) in 2004-2008 to 64.5% (5 118/7 939) in 2014-2018 (P=0.000) . Acute pancreatitis accounted for the majority of pancreatic diseases (67.4%, 1 973/4 414) , and its proportion increased from 52.4% (162/309) in 2004-2008 to 69.9% (1 636/2 340) in 2014-2018 (P=0.000) . The top 3 diseases in the younger group and the advanced age group were acute pancreatitis (32.58%, 129/396) , biliary stones (25.25%, 100/396) , chronic pancreatitis (22.22%, 88/396) , and biliary stones (56.46%, 568/1 006) , malignant biliary stenosis (12.52%, 126/1 006) , benign biliary stricture (10.34%, 104/1 006) , respectively. Conclusion The main disease of patients receiving ERCP is biliary stone, and the proportion of acute pancreatitis is increased. The overall age of the patients is old, and the proportion of the elderly and underaged patients is gradually increasing. Biliary diseases and pancreatic diseases are the main diseases in elderly patients and younger patients, respectively. Key words: Cholangiopancreatography, endoscopic retrograde; Population surveilance; Trend