In this work, a nitrogen-doping carbon-based catalyst to oxygen reduction reaction (ORR) is fabricated by using ammonia as single nitrogen source. The catalyst is characterized by scanning electron microscopy, transmission electron microscopy, X-ray diffraction and X-ray photoelectron spectroscopy. The catalytic activity to ORR is tested by electrochemical linear sweep voltammetry. The results show that the cobalt ions are reduced to metallic cobalt by acetylene black at high temperature. The metallic cobalt further facilitates the reaction between ammonia and acetylene black to form pyridinic and pyrollic C-N structures as the active sites of the catalyst to ORR. A better catalyst with an ORR onset potential of 0.69 V (vs. reversible hydrogen electrode) can be obtained at 600°C for 120 min.