Phenytoin is an anticonvulsant medication primarily used to control seizures, particularly in epilepsy. It works by stabilizing the neuronal membrane and reducing the frequency of seizure activity through modulation of sodium channels. Its effectiveness and safety profile make it a mainstay in the treatment of various seizure disorders.