A dually responsive fluorescent probe for determination of U(IV) and mercury(II) ions was synthesized. The probe consists of a cytosine-rich hairpin DNA loaded with silver nanoclusters (DNA-AgNCs). The fluorescence of the AgNCs is found to be quenched by UO2(II) at pH 5.0 and Hg(II) at pH 7.0 due to combined static and dynamic quenching. Under the optimal conditions, the green fluorescence of the DNA-AgNCs, best measured at excitation/emission wavelengths of 420/525 nm, decreases in the 4.0 to 75 pM UO2(II) concentration range, and in the 0.3 to 8.0 nM Hg(II) concentration range. The respective detection limits are as low as 1.8 pM and 0.1 nM. The method was successfully applied to the determination of UO2(II) and Hg(II) in (spiked) pond and taps waters and in soil extracts.