Introduction: Moyamoya disease (MMD) is a chronic cerebrovascular disease that can lead to ischemia and hemorrhagic stroke. The relationship between oxidative phosphorylation (OXPHOS) and MMD pathogenesis remains unknown.Methods: The gene expression data of 60 participants were acquired from three Gene Expression Omnibus (GEO) datasets, including 36 and 24 in the MMD and control groups. Differentially expressed genes (DEGs) between MMD patients MMD and control groups were identified. Machine learning was used to select the key OXPHOS-related genes associated with MMD from the intersection of DEGs and OXPHOS-related gene sets. Gene ontology (GO), Kyoto encyclopedia of genes and genomes (KEGG), gene set enrichment analysis (GSEA), Immune infiltration and microenvironments analysis were used to analyze the function of key genes. Machine learning selected four key OXPHOS-related genes associated with MMD: CSK, NARS2, PTPN6 and SMAD2 (PTPN6 was upregulated and the other three were downregulated).Results: Functional enrichment analysis showed that these genes were mainly enriched in the Notch signaling pathway, GAP junction, and RNA degradation, which are related to several biological processes, including angiogenesis, proliferation of vascular smooth muscle and endothelial cells, and cytoskeleton regulation. Immune analysis revealed immune infiltration and microenvironment in these MMD samples and their relationships with four key OXPHOS-related genes. APC co-inhibition (p = 0.032), HLA (p = 0.001), MHC I (p = 0.013), T cellco- inhibition (p = 0.032) and Type I IFN responses (p < 0.001) were significantly higher in the MMD groups than those in the control groups. The CSK positively correlated with APC co-inhibition and T cell-co-inhibition. The NARS2 negatively correlated with Type I IFN response. The SMAD2 negatively correlated with APC co-inhibition and Type I IFN response. The PTPN6 positively correlated with HLA, MHC I and Type I IFN responses.Discussion: This study provides a comprehensive understanding of the role of OXPHOS in MMD and will contribute to the development of new treatment methods and exploration of MMD pathogenesis.