Ampicillin (AMP) is a β-lactam antibiotic that can inhibit bacterial wall synthesis. The overuse and misuse of AMP makes it micropollutant that commonly found in food and various environmental media. In this work, a fluorescence polarization sensor was designed to sensitive detection of trace ampicillin based on click chemistry, using graphene oxide (GO) as a fluorescence polarization (FP) signal enhancement element. First, when ampicillin binds to its aptamer (apt), the adjacent alkyne and azide groups are separated, hindering the click-linking reaction. When Carboxyfluorescein (FAM) fluorophore-labeled probe (C-FAM) is added, its protruding 3-terminal FAM is recognized and cleaved by exonuclease I (EXO I), releasing fluorophores free that could not be adsorbed on GO, resulting in a lo0wer polarization signal. If there is no AMP in the system, aptamer probe is connected to its complementary chain ends by a click reaction. After C-FAM hybridizes with apt, the apt/P duplex is opened and the prominent single-stranded ends adsorb on the GO, leading a significantly enhanced FP signal. According to the relationship between the difference in FP values and the concentrations of AMP, the limit of detection of proposed method is as low as 80 pg/mL. This assay has a wide linear range plus excellent selectivity, and has been applied to detect AMP in milk and river water samples with satisfactory results, which demonstrates that the FP sensor has great potential for practical applications in food safety and environmental protection fields.