BackgroundCircular RNA (circRNA) has been proved to be an important regulator of gastric cancer (GC). However, the role and regulatory mechanism of circrna related competitive endogenous RNA (ceRNA) in GC have not been established. MethodsCircRNA data and clinical data were obtained from the GEO and TCGA databases. The ceRNA networks were constructed and a function enrichment analysis was completed. Additionally, correlations between hub genes expression, immune cell infiltration, and clinical phenotypes were determined. The differentially expressed circRNAs and their downstream microRNAs (miRNAs) were validated by quantitative real-time polymerase chain reaction, and the hub genes were validated by western blot analysis. The migration and invasion ability of overexpressed hsa_circ_0002504 was determined by a transwell assay. ResultsThe ceRNA network contained 2 circRNAs, 3 miRNAs, and 55 messenger RNAs (mRNAs). 323 biological processes terms, 53 cellular components terms, 51 molecular functions terms, and 4 signaling pathways were revealed by the function enrichment analysis. The GSEA analysis revealed that the hub genes were positively correlated with the axon guidance and adhesion molecules pathways. The correlation analysis revealed that overexpressed EPHA4 and KCNA1 indicated poor tissue differentiation and were associated with clinically advanced stages of GC. The in vitro experiments showed that hsa_circ_0002504 was significantly down-regulated in GC cell lines. In addition, the overexpression of hsa_circ_0002504 led to a significant downregulation of hsa-miR-615-5p and hsa-miR-767-5p, as well as an upregulation of EPHA4, KCNA1, and NCAM1. Furthermore, it suppressed the migration and invasion ability of GC cells. ConclusionsHsa_circ_0002504 is a potential diagnostic biomarker for GC. High expression of EPHA4 and KCNA1 may indicate poor prognosis.