We investigated the influence of variants in the genes encoding neuron-restrictive silencer factor (NRSF) and brain-derived neurotrophic factor (BDNF), proteins previously associated with cognition and epilepsy, on cognitive function in people with newly diagnosed epilepsy. Here, BDNF is linked to epilepsy.