The use of agrochemicals has increased considerably in recent years, and consequently, there has been increased exposure of ecosystems and human populations to these highly toxic compounds. The study and development of methodologies to detect these substances with greater sensitivity has become extremely relevant. This article describes, for the first time, the use of atomic force spectroscopy (AFS) in the detection of enzyme-inhibiting herbicides. A nanobiosensor based on an atomic force microscopy (AFM) tip functionalised with the acetolactate synthase (ALS) enzyme was developed and characterised. The herbicide metsulfuron-methyl, an ALS inhibitor, was successfully detected through the acquisition of force curves using this biosensor. The adhesion force values were considerably higher when the biosensor was used. An increase of ∼250% was achieved relative to the adhesion force using an unfunctionalised AFM tip. This considerable increase was the result of a specific interaction between the enzyme and the herbicide, which was primarily responsible for the efficiency of the nanobiosensor. These results indicate that this methodology is promising for the detection of herbicides, pesticides, and other environmental contaminants.