Abstract Background Aspartoacylase (ASPA) is a gene that plays an important role in the metabolic reprogramming of cancer. However, the clinical relevance of ASPA in gastric cancer (GC) has not been demonstrated. Methods The link between ASPA and the clinical features of GC was determined using two public genomic databases. The multivariate Cox proportional hazard model and generalised linear regression model were applied to examine whether the ASPA level is associated with the prognosis and other pathological factors. In addition, the role of specific genes in the infiltration of immune cells in the setting of GC was investigated using a further immunological database. The expression level of various proteins was detected using a western blotting assay. Transwell and methyl thiazolyl tetrazolium tests were applied for the detection of cellular invasion and proliferation, with small hairpin ribonucleic acid used to knockdown ASPA. Results According to the multivariate Cox regression results, the down-regulated ASPA expression is a distinct prognostic factor. Furthermore, ASPA has significant positive correlations with the infiltration of immune cells in GC lesions. Compared to the non-cancer tissues, the GC tissues had a significantly lower level of ASPA expression (p