Background
Gastric cancer, a prevalent malignancy, exhibits intricate etiological and pathological characteristics. Recent insights into the dysregulation of clock genes offer novel avenues for diagnosis, treatment, and prognosis in patients with gastric cancer. Methods: This study leveraged machine learning, Gene Set Enrichment Analysis (GSEA), immune infiltration analysis, survival prognosis analysis, drug sensitivity analysis, and in vitro experiments to elucidate the role of core clock genes in gastric cancer. Results: By integrating TCGA, GEO datasets, and NCBI database, we identified 29 differentially expressed clock genes. Utilization of four machine learning algorithms revealed TIMELESS and BHLHE41 as critical genes, with TIMELESS (AUC, 0.802) showing enhanced diagnostic potential for GC. High levels of TIMELESS expression in gastric cancer were associated with poor tumor prognosis and immune cell infiltration. We identified a targeted interaction between TIMELESS and the pyroptosis-related molecule CASP8, suggesting their collaborative involvement in gastric cancer pathogenesis. Moreover, Bortezomib was found to be a potential targeted therapy for TIMELESS in gastric cancer. Conclusion: TIMELESS emerges as a significant biomarker and therapeutic target in gastric cancer, with considerable implications for patient prognosis and treatment.