Background: Gastric cancer (GC) is the third most frequent malignant tumour in the Chinese population, let alone the whole world. Recently, most prognostic models have only focused on the levels of several genes, miRNAs, lncRNAs, gene mutations, or DNA methylation; however, the activation status of biological pathways is more stable and can reflect the comprehensive inner conditions of tumours. Methods: We collected samples from the Cancer Genome Atlas Stomach Adenocarcinoma (TCGA-STAD) cohort and GSE62254 cohort, with a total of 594 patients. We employed GSEA to first compare the diverse activated signalling pathways between dead GC patients and living patients. The least absolute shrinkage and selection operator (LASSO) regression analysis was subsequently performed by the "glmnet" package to generate a prognostic signature.Results: We extracted a total of 218 genes from the KEGG Focal Adhesion and KEGG ECM Receptor Interaction pathways, which showed significant activation in dead GC patients in two enrolled cohorts, for subsequent LASSO analysis. In the TCGA-STAD cohort, patients in the high-risk group faced a significantly poorer prognosis than those in the low-risk group (P < 0.001, HR: 4.62, 95% CI: 3.447-6.183), with an AUC of 0.694. In the GSE62254 cohort, the HR value was 4.94 (95% CI: 3.413-7.165), and the AUC value was as high as 0.834. A high-risk score and poor prognosis correlated with infiltrated dendritic cells, and the receptor of IFN-α was also positively linked with the risk score, as well as poor prognosis. GC patients with high-risk scores were more likely to respond to CTLA4 treatment but not PD1 treatment. Conclusion: Taken together, we established and verified an extracellular matrix prognostic model of gastric cancer patients. The model can be used to evaluate the risk of death of GC patients, as well as the response to anti-CTLA4 immunotherapy.