A catalyst obtained from the pyrolysis of a Co/Fe/Zn zeolitic imidazolite framework was prepared as ORR and OER electrocatalyst. A rechargeable Zn–air battery equipped with a Co–N–C-900 electrocatalyst shows power density of 275 mW cm −2 and good cycling stability for 180 h.