Here, we identified a gene regulatory network (GRN) involved in epilepsy that is controlled by inflammation and which regulates the expression and function of Colony Stimulating Factor 1 receptor (CSF1R), a therapeutic target for anti-epileptic drugs. Here, CSF1R is linked to epilepsy.