In conclusion, we discovered a MAO-B inhibitor, ethyl ferulate, which shows a strong neuroprotective effect by targeting microglia-mediated neuroinflammation after ischemia, providing a candidate for the treatment of ischemic stroke. The gene discussed is MAOB; the disease is ischemic stroke.