Both experimental and theoretical studies of the magnetic properties of micrographite and nanographite indicate a crucial role of the partial oxidation of graphitic zigzag edges in ferromagnetism. In contrast to total and partial hydrogenation, the oxidation of half of the carbon atoms on the graphite edges transforms the antiferromagnetic exchange interaction between graphite planes and over graphite ribbons to the ferromagnetic interaction. The stability of the ferromagnetism is discussed.