An easy method is described for the synthesis of a mesostructured Ni/ordered mesoporous carbon (OMC) composite with a highly ordered cubic structure (space group Im3m). This synthesis was carried out by the carbonization of the F127/[Ni(H2O)6](NO3)2/RF (r