The synthesis of two new families of compounds with oxadiazoline and quinazolinone structures and their in vitro biological evaluation as inhibitors of both neuronal and inducible nitric oxide synthases (nNOS and iNOS) are described. These derivatives have been obtained from cyclization of substituted benzohydrazides with acid anhydrides followed by reduction, using different synthetic procedures. Their structures were confirmed by high-resolution mass spectroscopy and 1H and 13C nuclear magnetic resonance data. In general, the assayed compounds show better inhibition values of nNOS than of iNOS, being 7d the most active derivative with a quinazolinone scaffold, and 6t the best oxadiazoline one and the best nNOS inhibitor of all tested compounds. The structure–activity relationships are discussed in terms of the effects of the substituents on both 2- and 3-positions of the heterocyclic rings.