These medications reduce the abnormal electrical activity in the brain that causes seizures. They may do this in different ways. Some change how neurotransmitters, or brain chemicals, send messages. Others affect how ions move in and out of brain cells, affecting electrical activity.