Epilepsy can be the result of many conditions or events, including abnormal brain structures, brain infections, changes to the immune function of the body, genetic issues and problems with the enzymes that process your food (metabolic issues). About half of cases of epilepsy have no known cause.