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 TLR4 and Cerebral ischemia.