What is the neurological reason for epilepsy?

I know the symptoms of epilepsy, but what happens to the brain and nerves to cause the symptoms?