Eclampsia is a condition that causes seizures in pregnancy. But it can also cause them during or after childbirth.