From Wikipedia, the free encyclopedia. Magnesium hydroxide is an inorganic compound with the chemical formula of hydrated Mg(OH) 2. It is often known as milk of magnesia, because of its milk-like appearance as a suspension.agnesium hydroxide is composed of magnesium ions and hydroxide ions and it will precipitate whenever the two are present together-ie, combine in a metathesis reaction.