Recurrent implantation failure (RIF) is an extremely thorny issue in in-vitro fertilization (IVF)-embryo transfer (ET). However, its intricate etiology and pathological mechanisms are still unclear. Nowadays, there has been extensive interest in cellular senescence in RIF, and its involvement in endometrial immune characteristics during the window of implantation (WOI) has captured scholars’ growing concerns. Therefore, this study aims to probe into the pathological mechanism of RIF from cellular senescence and investigate the correlation between cellular senescence and endometrial immune characteristics during WOI based on bioinformatics combined with machine learning strategy, so as to elucidate the underlying pathological mechanisms of RIF and to explore novel treatment strategies for RIF. Firstly, the gene sets of GSE26787 and GSE111974 from the Gene Expression Omnibus (GEO) database were included for the weighted gene correlation network analysis (WGCNA), from which we concluded that the genes of the core module were closely related to cell fate decision and immune regulation. Subsequently, we identified 25 cellular senescence-associated differentially expressed genes (DEGs) in RIF by intersecting DEGs with cellular senescence-associated genes from the Cell Senescence (CellAge) database. Moreover, functional enrichment analysis was conducted to further reveal the specific molecular mechanisms by which these molecules regulate cellular senescence and immune pathways. Then, eight signature genes were determined by the machine learning method of support vector machine-recursive feature elimination (SVM-RFE), random forest (RF), and artificial neural network (ANN), comprising LATS1, EHF, DUSP16, ADCK5, PATZ1, DEK, MAP2K1, and ETS2, which were also validated in the testing gene set (GSE106602). Furthermore, distinct immune microenvironment abnormalities in the RIF endometrium during WOI were comprehensively explored and validated in GSE106602, including infiltrating immunocytes, immune function, and the expression profiling of human leukocyte antigen (HLA) genes and immune checkpoint genes. Moreover, the correlation between the eight signature genes with the endometrial immune landscape of RIF was also evaluated. After that, two distinct subtypes with significantly distinct immune infiltration characteristics were identified by consensus clustering analysis based on the eight signature genes. Finally, a “KEGG pathway–RIF signature genes–immune landscape” association network was constructed to intuitively uncover their connection. In conclusion, this study demonstrated that cellular senescence might play a pushing role in the pathological mechanism of RIF, which might be closely related to its impact on the immune microenvironment during the WOI phase. The exploration of the molecular mechanism of cellular senescence in RIF is expected to bring new breakthroughs for disease diagnosis and treatment strategies.