Sunset yellow (SY) is a synthetic colorant which can cause allergies, diarrhea and other symptoms in sensitive people. When ingested too much, it can accumulate in the body and cause damage to the kidneys and liver. Therefore, the content of SY in food must be strictly controlled. In order to regulate their use and ensure food quality, simple and cost-effective methods need to be developed to identify them. In this experiment, fluorescent silicon nanoparticles (SiNPs) were prepared by a one-step method, which is simple, mild and less time-consuming. The fluorescent SiNPs prepared had good thermal stability, excellent salt resistance and pH stability. SY effectively quenched the fluorescence of SiNPs by fluorescence resonance energy transfer when added to the system as an interfering substance. The method had a good linear relationship in the range of SY concentration of 0.050 ~ 14.0 μg mL -1 and the detection limit is 0.023 μg mL -1 . The established sensor was applied to the detection of SY in beverages, and the recovery rate was 93.8% ~ 102.4%. Based on the excellent selectivity and sensitivity of the method, it could provide a convenient way for the detection of SY in food samples. Keywords:Sunset yellow. food quality. Silicon nanoparticles. Fluorescence.