Intraductal Papillary Mucinous Neoplasms (IPMNs) of the pancreas are bona fide precursor lesions of pancreatic ductal adenocarcinoma (PDAC). The most common subtype of IPMNs harbor a gastric foveolar type lining epithelium, and these low-grade mucinous neoplasms are harbingers of IPMNs with high-grade dysplasia and cancer. The molecular underpinning of gastric differentiation in IPMNs is unknown, although identifying drivers of this indolent phenotype might enable opportunities for intercepting progression to high-grade IPMN and cancer. We conducted spatial transcriptomics on a cohort of patient IPMNs, followed by orthogonal and cross species validation studies, which established the transcription factor NKX6-2 as a key determinant of gastric cell identity in low-grade IPMNs. Loss of NKX6-2 expression is a consistent feature of IPMN progression, while restitution of NKX6-2 in murine IPMN lines recapitulates the aforementioned gastric transcriptional program. Our study identifies NKX6-2 as a previously unknown transcription factor driving indolent gastric differentiation in IPMN pathogenesis.