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. This evidence concerns the gene CD4 and autoimmune encephalitis.