Porphyrin-based porous organic polymer (POP) with uniformly immobilized platinum nanoparticles (Pt NPs) were designed and synthesized, and it was demonstrated that such nanocomposites (Pt/POP) have oxidase-like activity. Surprisingly, Hg2+ significantly enhanced the oxidase-like activity of Pt/POP. The enhancement was attributed to the capture of Hg2+ by the thioether group in Pt/POP and the subsequent redox reaction of Hg2+ with Pt NPs, accelerating the electron transfer. In the presence of Hg2+, Pt/POP catalyzed the colorless 3,3',5,5'-tetramethylbenzidine (TMB) to turn blue rapidly and changed its absorbance at 652nm. Based on this, a fast-response colorimetric sensor was constructed for the sensitive detection of Hg2+ with a linear range of 0.2-50μM and a detection limit of 36.5nM. Importantly, Pt/POP can be used as an adsorbent for the efficient removal of Hg2+ with a removal efficiency as high as 99.4%. This work provides a valuable strategy for colorimetric detection and efficient removal of Hg2+.