It is highly desirable to fabricate transition bimetallic alloy-embedded porous nanocarbons with a unique nanoarchitecture for the oxygen evolution reaction (OER) and oxygen reduction reaction (ORR) in rechargeable zinc-air batteries. In this work, we introduce a template-assisted in situ alloying synthesis of FeNi alloy nanoparticle-decorated coral-like nanocarbons (FeNi-CNCs) as efficient OER/ORR dual-functional electrocatalysts. The present materials are produced through polycondensation of a covalent triazine framework (CTF), the coordination of Ni and Fe ions, and sequential pyrolytic treatment. Through the pyrolysis process, the nanolamellar FeNi-CTF precursors can be facilely converted into FeNi alloy nanoparticle-decorated nanocarbons. These nanocarbons possess a distinctive three-dimensional (3D) coral-like nanostructure, which is favorable for the transport of oxygen and the diffusion of electrolyte. As a result, FeNi-CNC-800 with the highest efficiency exhibited remarkable electrocatalytic performance and great durability. Additionally, it also can be assembled into rechargeable zinc-air batteries that can be assembled in both liquid and solid forms, offering a superior peak power density, large specific capacity, and outstanding reusability during charging/discharging cycles (e.g., 5160 charging-and-discharging cycles at 10 mA cm-2 for the liquid forms). These traits make it a highly promising option in the burgeoning field of wearable energy conversion.