The nerve impulse is characterised by a great influx of sodium ions through channels in the neuron's cell membrane followed by an efflux of potassium ions through other channels. The neuron is unable to fire again for a short time (known as the refractory period), which is mediated by another potassium channel. The flow through these ion channels is governed by a "gate" which is opened by either a voltage change or a chemical messenger known as a ligand (such as a neurotransmitter). These channels are another target for anticonvulsant drugs.[7]

The ketogenic diet is a mainstream dietary therapy that was developed to reproduce the success and remove the limitations of the non-mainstream use of fasting to treat epilepsy.[Note 2] Although popular in the 1920s and '30s, it was largely abandoned in favour of new anticonvulsant drugs.[1] Most individuals with epilepsy can successfully control their seizures with medication. However, 20–30% fail to achieve such control despite trying a number of different drugs.[9] For this group, and for children in particular, the diet has once again found a role in epilepsy management.[1][10]