This research included synthesizing a series of heterocyclic compounds where the compound 2-chloroacetohydrazide was synthesized from ethyl chloroethanoate with Hydrazine hydrate 95%. The reaction was carried out in the cold condition. 2-(pyrimidin-2-ylamino)acetohydrazide was prepared by reaction A1 with 2-amino pyrimidine in absolute ethanol using Potassium hydroxide (KOH); then reaction 2-(pyrimidin-2-ylamino) acetohydrazide with different aldehydes to produce Schiff bases derivatives A3 –A14 which was introduced in two different synthetic methods the first was synthesized. Then tetrazole derivatives [A15-A19] were synthesized from the hydrozone reactor (Schiff bases) [A3-A14] prepared by reaction Schiff base with sodium azide. In a second way, derivatives 2, 3-dihydroquinozoline-4-one [A20-A24] were synthesized from the interaction of some of Schiff's bases in the third step with anthralenic acid (2-amino benzoic acid) using 1,4-dioxane as a solvent; the synthetic compounds were diagnosed with some spectral methods, such as UV, FTIR, 1H-NMR and quantitative analysis of the elements (C.H.N.S.). Some synthetic compounds on the growth of four types of bacterial isolates known to be resistant to antibiotics were studied. Amoxicillin and Ampicillin were used as control samples, and some of the prepared compounds showed good inhibiting efficacy against the used bacteria (Escherichia coli, Klebsiella pneumonia, Staphylococcus aureus, and Staphylococcus epidermidis)