Carbamazepine is an anticonvulsant and mood-stabilizing medication primarily used to treat epilepsy, bipolar disorder, and trigeminal neuralgia. It works by reducing abnormal electrical activity in the brain, but it can interact with many other medications and requires monitoring for potential side effects like blood disorders and liver toxicity.