Magnesium was intercalated into a graphite-like layered material with an approximate composition of BC(2)N. The obtained material was a second-stage compound with a d-spacing of 0.367 nm for the intercalated layers. This is the first example of magnesium intercalation into a graphite-network-based material.