ZIF-8, ZIF-67, and Co/Zn-ZIF showed yield of 51%, 44%, and 73%, respectively. On the other side, carbonization (at a temperature of 600 o C, 700 o C, 800 o C, and 900 o C, NPC-X, X refers to the carbonization temperature) of these materials offered metal oxide embedded carbon with high light absorbance. On the other side, NPC-600 and NPC-900 showed high catalytic activities of 93-94% yield, while NPC-700 and NPC-800 exhibited a yield of 84-86% . At low carbonization temperature (600°C), N-C layers can well wrap the Co NPs leading to the formation of smaller grains and high metallic Co 0 content due to the effective inhibition of surface oxidation. In contrast, there is a high probability of surface oxidation at high carbonization temperature leading to a surface with CoOx oxides that inhibit the charge separation and transfer. Thus, the N-C/Co-600 sample exhibited the best photocatalytic activity .