BackgroundAbnormal sphingolipid metabolism (SM) is closely linked to the incidence of cancers. However, the role of SM in pancreatic cancer (PC) remains unclear. This study aims to explore the significance of SM in the prognosis, immune microenvironment, and treatment of PC.MethodsSingle-cell and bulk transcriptome data of PC were acquired via TCGA and GEO databases. SM-related genes (SMRGs) were obtained via MSigDB database. Consensus clustering was utilized to construct SM-related molecular subtypes. LASSO and Cox regression were utilized to build SM-related prognostic signature. ESTIMATE and CIBERSORT algorithms were employed to assess the tumour immune microenvironment. OncoPredict package was used to predict drug sensitivity. CCK-8, scratch, and transwell experiments were performed to analyze the function of ANKRD22 in PC cell line PANC-1 and BxPC-3.ResultsA total of 153 SMRGs were acquired, of which 48 were linked to PC patients’ prognosis. Two SM-related subtypes (SMRGcluster A and B) were identified in PC. SMRGcluster A had a poorer outcome and more active SM process compared to SMRGcluster B. Immune analysis revealed that SMRGcluster B had higher immune and stromal scores and CD8 + T cell abundance, while SMRGcluster A had a higher tumour purity score and M0 macrophages and activated dendritic cell abundance. PC with SMRGcluster B was more susceptible to gemcitabine, paclitaxel, and oxaliplatin. Then SM-related prognostic model (including ANLN, ANKRD22, and DKK1) was built, which had a very good predictive performance. Single-cell analysis revealed that in PC microenvironment, macrophages, epithelial cells, and endothelial cells had relatively higher SM activity. ANKRD22, DKK1, and ANLN have relatively higher expression levels in epithelial cells. Cell subpopulations with high expression of ANKRD22, DKK1, and ANLN had more active SM activity. In vitro experiments showed that ANKRD22 knockdown can inhibit the proliferation, migration, and invasion of PC cells.ConclusionThis study revealed the important significance of SM in PC and identified SM-associated molecular subtypes and prognostic model, which provided novel perspectives on the stratification, prognostic prediction, and precision treatment of PC patients.