Lamotrigine is an anticonvulsant medication primarily used in the treatment of epilepsy and bipolar disorder.