D-Alanine-D-alanine ligase (Ddl) catalyzes the biosynthesis of an essential bacterial peptidoglycan precursor D-alanyl-D-alanine and it represents an important target for development of new antibacterial drugs. A series of semicarbazides, aminocarbonyldiazenecarboxylates, diazenedicarboxamides, and hydrazinedicarboxamides was synthesized and screened for inhibition of DdlB from Escherichia coli. Compounds with good inhibitory activity were identified, enabling us to deduce initial structure-activity relationships. Thirteen diazenedicarboxamides were better inhibitors than D-cycloserine and some of them also possess antibacterial activity, which makes them a promising starting point for further development.