The results of our study suggest that SHD can alleviate cecum mucosal injury and improve depressive- and anxiety-like behaviors by regulating the cecal microbiota and inhibiting the excessive activation of the NLRP3 inflammasome in the cecum and serum. This evidence concerns the gene NLRP3 and Anxiety.