A well-designed three-dimensional (3D) covalent organic framework (COF) was constructed as a nanocapsule for the encapsulation of horseradish peroxidase (HRP), which could realize sustained release of HRP to prolong the duration of the therapeutic agents and promote long-term enzyme prodrug therapy.