Fun in Chemistry Class

I had a chance to pop into the Chemistry class last week during a lab.  The students heated magnesium and allowed it to react with oxygen to produce an oxide. Anyone remember what happens to magnesium when this takes place?