Patients with refractory epilepsy and autoimmune encephalitis displayed CD4+ and CD8+ T cell subsets alterations and unbalanced proinflammatory IL‐17 production. Refractory epilepsy patients uniquely showed NK cells alteration. Here, IL17A is linked to epilepsy.