Magnesium and water don't mix well. Kinda like sodium and water, if you've ever done that prank.
Magnesium is non-reactive in water (certainly not like sodium that will literally explode). It will corrode quickly in salt water, though. Very low on the galvanic series.
Get magnesium hot enough and it will burn with an intense white light. And you can't put the fire out. (Actually, aluminum will do the same, but you've got to get it
really hot.
This is what happens when aluminum burns: