By reaction of dehydroacetic acid with aromatic and heterocyclic aldehydes have been synthesized alpha,beta-unsaturated ketones, which in reaction with guanidin chlorohydrate or with o-phenylene diamine have been transformed to series of 2-amino-4,6-diarylpyrimidines or corresponding 2,3-dihydro-1H- 1,5-benzodiazepine. Structure of these products has been by JR, MS, and 1H-NMR spectroscopies data. Biological activities of these compounds has been investigated.