Phenytoin is in a class of medications called anticonvulsants It works by decreasing abnormal electrical activity in the brain. Phenytoin is used to control certain type of seizures, and to treat and prevent seizures that may begin during or after surgery