Carbamazepine is an anticonvulsant and mood-stabilizing drug primarily used in the treatment of epilepsy and bipolar disorder. It is also prescribed for neuropathic pain, such as trigeminal neuralgia. The drug works by stabilizing the inactive state of sodium channels, making neurons less excitable.