The invention discloses a method for preparing a metallic compound/porous carbon nanorod of a hierarchy structure, and belongs to the technical field of new energy. The method comprises the following steps: firstly, mixing inorganic transition metal salt, 1,4-naphthalic acid and water so as to obtain a turbid solution of an organic acid complex of metal ions; secondly, under a high-temperature hydrothermal condition, performing reaction for a certain period of time so as to generate a precursor of a metal organic frame; and finally, in the protection of an inert gas, performing high-temperature thermal treatment control, thereby obtaining the metallic compound/porous carbon nanorod. As a sodium-ion battery negative material, the metallic compound/porous carbon nanorod shows excellent multiplying power characteristic and cycling stability. The method has the advantages of being simple in preparation process, low in equipment requirement, rich in raw material resource, low in production cost, short in synthesis cycle, gentle in reaction condition, high in yield, free of template removal, good in material property and the like, industrial production can be easily achieved, and a product can be used in the field of electrochemical energy storage.