Magnesium nitrate is a chemical compound with the formula Mg(NO3)2. It is a colorless, crystalline solid. It is widely used in the production of fireworks, as a catalyst in the manufacturing of certain petrochemicals, and as a dehydrating agent in various organic synthesis reactions.