OBJECTIVE: Insomnia is increasingly recognized as a significant factor in the development of various autoimmune diseases, including autoimmune uveitis (AU). We investigated insomnia-associated genes that may contribute to AU pathogenesis and sought to identify potential biomarkers for insomnia-associated AU. METHODS: Microarray data related to insomnia and AU were downloaded from the Gene Expression Omnibus (GEO) database and analyzed. The GEO2R tool was used to identify differentially expressed genes (DEGs) that were common between insomnia and AU. Weighted gene co-expression network analysis (WGCNA), protein-protein interaction (PPI), functional enrichment, and CMap analyses were then performed to identify pathogenic genes, underlying mechanisms, and potential therapeutic drugs for insomnia-associated AU. Least absolute shrinkage and selection operator regression was employed to screen for candidate biomarkers, and their diagnostic performance was evaluated using receiver operating characteristic (ROC) curves and quantitative polymerase chain reaction (qPCR). Finally, molecular docking was applied to verify binding activities. RESULTS: We identified 138 up-regulated and 85 down-regulated DEGs that were common to insomnia and AU. PPI network analysis highlighted 10 key genes, CMap analysis identified 30 compounds, and WGCNA revealed 54 key genes and 30 compounds. Intersection of the above-mentioned key genes and compounds identified six genes and five compounds. After verification by qPCR and ROC curve analysis, CONCLUSION: Our study demonstrated involvement of the viral response in both insomnia and AU and identified the diagnostic significance of