Introduction: The pancreatic choristoma or ectopic pancreas is the presence of pancreatic tissue outside the anatomic location of the pancreas. It is a rare pathology that can occur in any location of the gastrointestinal tract, it is mostly asymptomatic, but it can manifest as inflammation, bleeding, obstruction and neoplastic changes. Case report: Present a 27-year-old patient from Cajamarca, with a 12-year history of peptic ulcer, presenting with symptoms of gastrointestinal hemorrhage and hemodynamic decompensation, with endoscopic evidence of duodenal tumor and subsequent histopathological study of ectopic pancreas. Conclusions: The ectopic pancreas is a rare entity, being the stomach and intestine the most frequent; Its finding is incidental, unless complicated by bleeding, inflammation or malignancy. In our case, the location was duodenal, with hemorrhagic presentation, which required endoscopic and later surgical treatment.