Glaucoma is a leading cause of permanent blindness, affecting 80 million people worldwide. Recent studies have emphasized the importance of neuroinflammation in the early stages of glaucoma, involving immune and glial cells. To investigate this further, we used the GSE27276 dataset from the GEO (Gene Expression Omnibus) database and neuroinflammation genes from the GeneCards database to identify differentially expressed neuroinflammation-related genes associated with primary open-angle glaucoma (POAG). Subsequently, these genes were submitted to Gene Ontology and the Kyoto Encyclopedia of Genes and Genomes for pathway enrichment analyses. Hub genes were picked out through protein-protein interaction networks and further validated using the external datasets (GSE13534 and GSE9944) and real-time PCR analysis. The gene–miRNA regulatory network, receiver operating characteristic (ROC) curve, genome-wide association study (GWAS), and regional expression analysis were performed to further validate the involvement of hub genes in glaucoma. A total of 179 differentially expressed genes were identified, comprising 60 upregulated and 119 downregulated genes. Among them, 18 differentially expressed neuroinflammation–related genes were found to overlap between the differentially expressed genes and neuroinflammation–related genes, with six genes (SERPINA3, LCN2, MMP3, S100A9, IL1RN, and HP) identified as potential hub genes. These genes were related to the IL-17 signaling pathway and tyrosine metabolism. The gene–miRNA regulatory network showed that these hub genes were regulated by 118 miRNAs. Notably, GWAS data analysis successfully identified significant single nucleotide polymorphisms (SNPs) corresponding to these six hub genes. ROC curve analysis indicated that our genes showed significant accuracy in POAG. The expression of these genes was further confirmed in microglia, Müller cells, astrocytes, and retinal ganglion cells in the Spectacle database. Moreover, three hub genes, SERPINA3, IL1R1, and LCN2, were validated as potential diagnostic biomarkers for high-risk glaucoma patients, showing increased expression in the OGD/R-induced glaucoma model. This study suggests that the identified hub genes may influence the development of POAG by regulation of neuroinflammation, and it may offer novel insights into the management of POAG.