Epilepsy is a neurological disorder associated with the occurrence of convulsive seizures that can endanger pregnancy.