Electronic structure and magnetic properties of graphite-based systems with intercalated 3d-transition metal atoms (V, Cr, Mn, Fe, Co, Ni) were calculated ab initio using the density functional theory. The presence of different magnetic states depending on the type of inserted M atoms is revealed for hexagonal P6/mmm and