A sulfur, nitrogen and phosphorus ternary-doped cattle-bone-derived hierarchically porous carbon metal-free electrocatalyst was synthesized, exhibiting superior oxygen reduction performance compared to Pt/C.