Two-dimensional (2D) carbon nanostructures play a critical role for energy-related applications, while developing facile and efficient strategies to synthesize this kind of nanostructures is extremely rare.Herein, ultrathin carbon nanoribbons (CNRibs), with a thickness of 2-6 nanometers and length of hundred nanometers, have been strategically fabricated via a one-step pyrolysis of one-dimensional (1D) metalorganic framework nanorods (MOF NRods). Manipulating the diameters of MOF NRods will result in the formation of porous carbon nanostructures in 1D or 2D morphologies. Functional CNRibs with N doping or metal active sites immobilization have also been studied. The CNRibs decorated with iron nanoclusters and single atoms have been used as the excellent catalysts for oxygen reduction reaction under both alkaline and acidic conditions, as well as zinc-air batteries. This work gives deep insights into the structural evolution from 1D to 2D morphology, providing an efficient approach to fabricate low-dimensional nanomaterials with controllable morphologies and functionalities for electrochemical applications.