Ischemic stroke (IS) is a multifactorial disease caused by the interaction of multiple environmental and genetic risk factors, and it is the most common cause of disability. The immune microenvironment and inflammatory response participate in the whole process of IS occurrence and development. Therefore, the rational use of relevant markers or characteristic pathways in the immune microenvironment will become one of the important therapeutic strategies for the treatment of IS. We collected peripheral blood samples from 10 patients diagnosed with IS at the First Affiliated Hospital of Gannan Medical University and First Affiliated Hospital, Jinan" University, and from 10 normal people. The GSE16561 dataset was downloaded from the Gene Expression Omnibus (GEO) database. xCell, gene set enrichment analysis (GSEA), single-sample GSEA (ssGSEA) and immune-related gene analysis were used to evaluate the differences in the immune microenvironment and characteristic pathways between the IS and control groups of the two datasets. xCell analysis showed that the IS-24h group had significantly reduced central memory CD8+ T cell, effector memory CD8+ T cell, B cell and Th1 cell scores and significantly increased M1 macrophage and macrophage scores. GSEA showed that the IS-24h group had significantly increased inflammation-related pathway activity(myeloid leukocyte activation, positive regulation of tumor necrosis factor biosynthetic process, myeloid leukocyte migration and leukocyte chemotaxis), platelet-related pathway activity(platelet activation, signaling and aggregation; protein polymerization; platelet degranulation; cell-cell contact zone) and pathology-related pathway activity (ERBB signaling pathway, positive regulation of ERK1 and ERK2 cascade, vascular endothelial growth factor receptor signaling pathway, and regulation of MAP kinase activity). Immune-related signature analysis showed that the macrophage signature, antigen presentation-related signature, cytotoxicity-related signature, B cell-related signature and inflammation-related signature were significantly lower in the IS-24h group than in the control group. In this study, we found that there were significant differences in the immune microenvironment between the peripheral blood of IS patients and control patients, as shown by the IS group having significantly reduced CD8+ Tcm, CD8+ Tem, B cell and Th1 cell scores and significantly increased macrophage and M1 macrophage scores. Additionally, inflammation-related, pathological, and platelet-related pathway activities were significantly higher in the IS group than in the control group.