Specific forms of nitrogen doping can endow carbon-based metal-free materials with electrocatalytic activity. Now, introducing sp-hybridized nitrogen atoms into some acetylenic sites of ultra-thin graphdiyne — a highly π-conjugated lamellar carbon allotrope — has led to excellent oxygen reduction reaction activity.