Collectively, we found a MAO-B inhibitor ethyl ferulate with therapeutic potentials in neuroinflammation which was justified by both in vivo and in vitro experiments, providing a reliable neuroprotectant candidate for ischemic stroke. This evidence concerns the gene MAOB and ischemic stroke.