A case of invasive ductal carcinoma of an ectopic pancreas in the stomach in a 74-year-old woman is presented. A 4.0 cm gastric submucosal tumor (SMT) was resected surgically. Histologically, the tumor showed cystic tissue consisting of an ectopic pancreas with foci of a moderately differentiated tubular adenocarcinoma. In this tumor, small pancreatic tissues, acini, Langerhans islets, and ductular cells were detected in the gastric SMT. The patient has experienced long-term survival. The incidence of pancreatic cancer of an ectopic pancreas is rare, and the etiology of this disease is discussed in the literature