In this report, hierarchical porous ZIF-8 and ZIF8-derived ZnO@N-doped C were synthesized and characterized using X-ray diffraction (XRD), X-ray photoelectron spectroscopy (XPS), transmission electron microscopy (TEM), high-resolution TEM (HR-TEM), nitrogen adsorptiondesorption isotherms, and thermal analysis (thermogravimetric analysis (TGA)). They were applied to remove organic dyes from the water via adsorption and photodegradation under ultraviolet (UV) light. The adsorption and photocatalytic degradation of methyl blue (MeB) and fluorescein (FLU) dye were investigated for both processes using ZIF-8 and ZnO@N-doped C.