A N-benzylaniline derivative and uses thereof. The derivative is a compound represented by formula I or a pharmaceutically acceptable salt thereof. The compound protects against cerebral ischemia/reperfusion injury and has analgesic action for chronic pathologic pain, and may be used to treat cerebral apoplexy, neuropathic pain, and inflammatory pain. Moreover, because of the unique mechanism of action of the compound, the compound can be used to treat epilepsy, affective disorder, and neurodegenerative diseases.