Taken together, our study identified a MAO-B inhibitor, Ethyl ferulate, as an active compound with promising potentials for suppressing post-stroke neuroinflammation. Here, MAOB is linked to stroke disorder.