Here, we unveil a novel mechanism though which microglial TRPM2 mediates epilepsy development. Here, TRPM2 is linked to epilepsy.