After taking the intersection of SCFA metabolism-related genes and the co-expression WGCNA modules of stroke, 10 SCFA-related hub genes were obtained, and 6 of them showed high diagnostic efficacy through LASSO regression and ROC analysis, including HAS3, VIM, ZFP36L2, CPQ, F5, and PIK3CG. This evidence concerns the gene HAS3 and stroke disorder.