R6G@UIO-67 consisted of the rhodamine 6 G (R6G) in the nanocages or nano-pores of UIO-67, which was successfully constructed by the one-pot method under hydrothermal conditions.Whose structure, stability and morphol. were characterized by the XRD, TGA and SEM.R6G@UIO-67 exhibited the highly thermal stability up to 550 °C, and emitted the bright yellow light at 580 nm with the quantum yield of 44.66 %, which could selectively detect the ornidazole (ODZ) among eight antibiotics.Furthermore, R6G@UIO-67 was associated with com. green phosphor powder and red phosphor powder, which were encapsulated on the 455 nm blue LED chip, to obtain an exceptional warm white light emitting diode (WLED) device with the CIE coordinates of (0.385, 0.385), correlated color temperature (CCT) of 3951 K, luminous efficiency (LE) of 122.45 lm/w and color render index (CRI) of 93.8.