Magnesium sulfate supplies magnesium, which the body needs for many enzyme reactions and for normal nerve signaling and muscle activity. Where nerves meet muscles, it cuts the amount of acetylcholine, the chemical messenger the nerve releases, which blocks the signal to the muscle. This blocking effect is how it prevents and controls seizures, and it is also said to have a calming effect on the brain. It also widens blood vessels, which causes flushing and sweating at low doses and lowers blood pressure at larger doses.
Given by IV, its anti-seizure effect starts right away and lasts about 30 minutes, while a shot into a muscle starts in about an hour and lasts 3 to 4 hours. The kidneys are the only way the body clears it, so weak kidneys can let it build up to toxic levels. As levels climb too high, reflexes weaken and then disappear, and breathing can stop. Very high levels can also block the heart's electrical signals and can be fatal, and calcium given by IV partly reverses these effects.