A unique Ppy@CdS/ZnFe2O4 nanoreactor is fabricated via the microwave-hydrothermal method and surface-imprinting technique, which effectively enhances the recyclability, stability, and selectivity for recognition and degradation of tetracycline under visible-light irradiation.