The main cause of eclampsia is preeclampsia which hasn't been treated effectively. However, even with treatment, preeclampsia can progress to eclampsia. The cause isn't always clear.