Epilepsy is caused by chemical signals getting misdirected, causing convulsions and muscle spasms.