Anticonvulsants, also known as antiepileptic drugs (AEDs), are a class of medications used primarily to manage epilepsy and prevent seizures. They can also be prescribed for other conditions such as bipolar disorder, neuropathic pain, and migraine prophylaxis. These drugs work by stabilizing neuronal membranes and inhibiting the abnormal electrical activity in the brain that leads to seizures.