The removal and detection of highly toxic mercury(II) ions (Hg2+) in water used daily is essential for human health and monitoring environmental pollution. Efficient porous organic polymers (POPs) can provide a strong adsorption capacity toward heavy metal ions, although the complex synthetic process and inconvenient phase separation steps limit their application. Hence, a combination of POPs and magnetic nanomaterials was proposed and a new magnetic porous organic polymer adsorbent was fabricated by a green and mild redox reaction in the aqueous phase with trithiocyanuric acid (TA) and its sodium salts acting as reductive monomers and iodine acting as an oxidant. In the preparation steps, no additional harmful organic solvent is required and the byproducts of sodium iodine are generally considered to be non-toxic. The resulting magnetic poly(trithiocyanuric acid) polymers (MPTAPs) are highly porous, have large surface areas, are rich in sulfhydryl groups and show easy magnetic separation ability. The experimental results show that MPTAPs exhibit good adsorption affinity toward Hg2+ with high selectivity, rapid adsorption kinetics (10 min), a large adsorption capacity (211 mg g−1) and wide adsorption applicability under various pH environments (pH 2~8). Additionally, MPTAPs can be reused for up to 10 cycles, and the magnetic separation step of MPTAPs is fast and convenient, reducing energy consumption compared to centrifugation and filtration steps required for non-magnetic adsorbents. These results demonstrate the promising capability of MPTAPs as superior adsorbents for effective adsorption and separation of Hg2+. Based on this, the prepared MPTAPs were adopted as magnetic solid-phase extraction (MSPE) materials for isolation of trace Hg2+ from aqueous samples. Under optimized conditions, the extraction and quantification of trace Hg2+ in water samples were accomplished using inductively coupled plasma mass spectrometry (ICP-MS) detection after MSPE procedures. The proposed MPTAPs-based MSPE-ICP-MS method is efficient, rapid, sensitive and selective for the determination of trace Hg2+, and was successfully employed for the accurate analysis of trace Hg2+ in tap water, wastewater, lake water and river water samples.