Medications for preeclampsia are used to prevent complications of high blood pressure during pregnancy. Common classes include anticonvulsants. Anticonvulsants like magnesium sulfate are usually given as an injection to prevent and treat seizures. These medications can help effectively prevent and treat complications that arise from high blood pressure in pregnancy.