Rapid, accurate, sensitive, and real-time detection of streptomycin (STR) residues in dairy products is very important. In this work, for the rst time, the gold nano ower/polyethyleneimine functionalized metal organic framework (AuNF-PEI-MIL-101(Cr)) nanocomposites were synthesized via hydrothermal method and characterized using various techniques (SEM, TEM, XRD, FT-IR and XPS). Then, a novel electrochemical aptasensor was constructed for the detection of STR based on AuNF-PEI-MIL-101(Cr) nanocomposites. The gold electrode (GE) modi ed with AuNF-PEI-MIL-101(Cr) can immobilize a large number of thiolated STR aptamer via the Au-S bond. When the target STR was in the presence, the current signal was reduced due to the speci c binding of STR towards the aptamer. The results indicated that the aptasensor had a wide linear range towards STR (0.01-400 nM) with a low detection limit of 0.003 nM under the optimal conditions. Moreover, the aptasensor exhibited good selectivity, reproducibility, and stability. In addition, the STR in the cow, sheep, and goat milk samples was detected by the spiked recovery method, and satisfactory results were obtained. The method provides an e cient pathway for the sensitive detection of STR. Highlights 1. The presence of AuNF-PEI-MIL-101(Cr) on the sensor surface increases the aptamer loading e ciency.2. The developed aptasensor exhibits wide linear range and low detection limit for streptomycin.3. The aptasensor shows high sensitivity and selectivity. 4. Fabricated aptasensor can be proposed for monitoring other antibiotics in foodstuffs.