 This study has developed a new type of porous nitrogen-doped cobalt pyrite-yoke-shell nanosphere, N-COS2-YSS, which exhibits excellent performance in both oxygen-evolution reaction, OER, and oxygen-reduction reaction, ORR, making it suitable for use in zinc-air batteries, ZABs. The N-COS2-YSSs have higher exposed active surface area compared to other materials, resulting in improved OER and ORR activities. Furthermore, the N-COS2-YSSs are able to maintain their high performance even after repeated cycles, making them ideal candidates for practical applications.