Magnesium sulfate, commonly known as Epsom salt, is a chemical compound containing magnesium, sulfur, and oxygen. It is often used as a bath salt, agricultural fertilizer, and in medical treatments for certain conditions, such as magnesium deficiency and pre-eclampsia.