Stroke has a high incidence and is a disabling condition that can lead to severe cognitive, motor, and sensory dysfunction. In this study, we employed a drug repurposing strategy to investigate the neuroprotective effect of lomitapide on focal ischemic brain injury and explore its potential mechanism of action. Experimental cerebral ischemia was induced by middle cerebral artery occlusion (MCAO) in adult male C57BL/6 mice and simulated by oxygen-glucose deprivation in N2a-BV2 cells in co-cultivation. Lomitapide significantly increased the survival rate, reduced the neuronal tissue loss, and improved the neurological function after MCAO. Furthermore, lomitapide could increase the expression of LC3-II, reduce the expression of P62 and LAMP2, promote autophagic flux, and inhibit apoptosis by increasing and inhibiting the expression of the apoptosis-associated proteins Bcl-2 and Bax, respectively. In addition, lomitapide inhibited the migration of pro-inflammatory microglia. Lomitapide is a lipid-lowering drug, and this is the first study to explore its protective effect on ischemic nerve injury in vitro and in vivo. Our results suggest that lomitapide can be repositioned as a potential therapeutic drug for the treatment of stroke.