Artemisinin and its derivatives are the most efficacious treatment for malaria, and the artificial synthesis of artemisinin supplies a promising method to satisfy market demand. However, conventional artemisinin preparation via homogeneous photo/acid-catalytic reactions usually suffers from the difficulty in recycling the photo/acid-catalysts and treating waste acid. Consequently, it is still highly urgent for developing environment-friendly and effective artificial preparation methods for artemisinin. Herein, a dual-function covalent organic framework (COF), named Urea-COF, has been synthesized from the condensation of meso-tetra(p-formylphenyl)porphyrin with 1,3-bis(4-aminophenyl)urea. UreaCOF exhibits a high surface area of 1732 m