A specific example of a synthesis would be mixing Mg(NO3)2 and KOH and then adding that solution to (COOCH3)2.[9] Magnesium oxalate when heated will decompose. First, the dihydrate will decompose at 150 °C into the anhydrous form.