A multifunctional COF@HOF (ETTA-DFP@TCBP-HOF) composite is prepared by adding red-fluorescent ETTA-DFP COF to the blue-fluorescent TCBP-HOF preparation system through molecular hydrogen bonding or π − π stacking interactions in situ one-pot synthesis. ETTA-DFP@TCBP-HOF is a multifunctional material for the quantitative detection and simultaneous adsorption of 4-nitrophenol (4-NP) and metamitron (MET) in aqueous solution. As a dual-emission fluorescent sensor, the ETTA-DFP@TCBP-HOF has both fluorescence of TCBP-HOF at 474 nm and ETTA-DFP COF at 592 nm, which shows a ratiometric response to 4-NP and MET with high selectivity, good sensitivity, good anti-interference performance and fast response. As a adsorbent, ETTA-DFP@TCBP-HOF displays rapid adsorption kinetics, and acceptable adsorption capacity for 4-NP and MET. In conclusion, this work constructs a novel multifunctional hybrid material with dual-emission center of HOF and COF, which can not only be used as a ratiometric fluorescent probe for detection, but also for removal of hazardous pollutants, suggesting a new strategy for environmental remediation and human health.