In summary, this study revealed that SB can protect against cerebral ischemia–reperfusion injury by controlling microglia polarization and microbiome-gut-brain axis to inhibit brain inflammation via the TLR4/MyD88/NF-κB pathway. This evidence concerns the gene NFKB1 and brain ischemia.