The shikimate pathway is crucial for the biosynthesis of aromatic amino acids in plants and represents a promising target for developing new herbicides. This work aimed to identify inhibitors of shikimate dehydrogenase (SDH), a key enzyme of the shikimate pathway that catalyzes the conversion of 3-dehydroshikimate to shikimate. Virtual screening and molecular dynamic simulations were performed on the SDH active site of Arabidopsis thaliana (AtSDH), and 6-nitroquinazoline-2,4-diol (NQD) was identified as a potential inhibitor. In vitro assays showed that NQD decreased the activity of AtSDH by reducing Vmax while keeping KM unchanged, indicating non-competitive inhibition. In vivo, hydroponic experiments revealed that NQD reduced the root length of soybean and maize. Additionally, NQD increased the total protein content and certain amino acids. Soybean roots uptake NQD more efficiently than maize roots. Furthermore, NQD reduced shikimate accumulation in glyphosate-treated soybean roots, suggesting its potential to restrict the flow of metabolites along the shikimate pathway in soybean. The simultaneous treatment of maize seedlings with glyphosate and NQD accumulated gallic acid in the roots, indicating that NQD inhibits SDH in vivo. Overall, the data indicate that NQD inhibits SDH both in vitro and in vivo, providing valuable insights into the potential development of herbicides targeting SDH.