Composite material made of carbon microspheres highly doped with quaternary nitrogen, designed as an electrocatalyst for the oxygen reduction reaction in fuel cells and metal–air batteries. It combines high electrochemical efficiency with sustainability by eliminating the use of noble metals.