Tetracyclines (TCs), a class of broad-spectrum antibiotics, are major contaminants in water, have adverse effects on the ecosystem, and are toxic non-target organisms. A straightforward and efficient strategy for both the detection and removal of TCs from water remains highly desirable but is challenging to develop. In this study, a dual-functional platform for detecting and removing TCs was developed using highly stable silver-based metal-organic frameworks (Ag-MOFs). This platform enabled the specific detection of TCs over a broad concentration range (from 1 × 10⁻