Nitrogen and fluorine co-doped carbon black (BP-NF) was prepared via the direct pyrolysis of a mixture of polytetrafluoroethylene (PTFE) and BP-2000 under an ammonium atmosphere for high efficient ORR electrocatalysis in the air-cathode of microbial fuel cells.