Background. High-grade serous ovarian cancer (HGSOC) carries the highest mortality in the gynecological cancers; however, therapeutic outcomes have not significantly improved in recent decades. Macrophages play an essential role in the occurrence and development of ovarian cancer, so the mechanisms of macrophage infiltration should be elucidated. Method. We downloaded transcriptome data of ovarian cancers from the Gene Expression Omnibus and The Cancer Genome Atlas. After rigorous screening, 1566 HGSOC were used for data analysis. CIBERSORT was used to estimate the level of macrophage infiltration and WGCNA was used to identify macrophage-related modules. We constructed a macrophage-related prognostic model using machine learning LASSO algorithm and verified it using multiple HGSOC cohorts. Results. In the GPL570-OV cohort, high infiltration level of M1 macrophages was associated with a good outcome, while high infiltration level of M2 macrophages was associated with poor outcomes. We used WGCNA to select genes correlated with macrophage infiltration. These genes were used to construct protein-protein interaction maps of macrophage infiltration. IFL44L, RSAD2, IFIT3, MX1, IFIH1, IFI44, and ISG15 were the hub genes in the network. We then constructed a macrophage-related prognostic model composed of CD38, ACE2, BATF2, HLA-DOB, and WARS. The model had the ability to predict the overall survival rate of HGSOC patients in GPL570-OV, GPL6480-OV, TCGA-OV, GSE50088, and GSE26712. In exploring the immune microenvironment, we found that CD4 memory T cells and activated mast cells showed that the degree of infiltration was higher in the high-risk group, while M1 macrophages were the opposite, and HLA molecules were overexpressed in the high-risk group. Conclusion. We constructed a macrophage infiltration-related protein interaction network that provides a basis for studying macrophages in HGSOC. Our macrophage-related prognostic model is robust and widely applicable. It predicts overall survival in HGSOC patients and may improve HGSOC treatment.