Dilantin treats focal (affecting one side of the brain) and generalized (affecting both sides of the brain) seizures. It’s also approved to prevent and treat seizures that occur during or after brain surgery. Sometimes, Dilantin is prescribed off-label to treat a nerve pain disorder called trigeminal neuralgia or to prevent seizures that may occur soon after a head injury.