Proper magnesium levels prevent carbonates from precipating out before corals etc. can biologically utilize them. Think of magnesium as a chemical speed bump for carbonates. When I first setup my nano as a downsize from my 75 gallon, I had the hardest time keeping my alkalinity levels up, even with judicious amounts of two-part solution. When I got around to testing the magnesium levels, they were at about 1000 ppm. I since raised them to ~1500 ppm (a little on the high side but still in range) and now have no problems.