pancreatic ductal adenocarcinoma (PDAC) is a malignant tumor with a very poor prognosis and a complex tumor microenvironment, which plays a key role in tumor progression and treatment resistance. Glycosylation plays an important role in processes such as cell signaling, immune response and protein stability. single-cell RNA sequencing data and spatial transcriptome data were obtained from GSE197177 and GSE224411, respectively, and RNA-seq data and survival information were obtained from UCSC Xena and TCGA. Multiple transcriptomic data were comprehensively analyzed to explore the role of glycosylation processes in tumor progression, and functional experiments were performed to assess the effects of MGAT1 overexpression on PDAC cell proliferation and migration. In PDAC tumor samples, the glycosylation level of macrophages was significantly higher than that of normal samples. MGAT1 was identified as a key glycosylation-related gene, and its high expression was associated with better patient prognosis. Overexpression of MGAT1 significantly inhibited the proliferation and migration of PDAC cells and affected intercellular interactions in the tumor microenvironment. MGAT1 plays an important role in PDAC by regulating glycosylation levels in macrophages, influencing tumor progression and improving prognosis.MGAT1 is a potential therapeutic target for PDAC and further studies are needed to develop targeted therapeutic strategies against MGAT1 to improve clinical outcomes.