The triazoles 3a-d underwent condensation reactions with 4-(piperidin-1-yl)-benzaldehyde to afford the chalcones 5a-d. Chalcone derivatives 5a-d were reacted with 2,3-diaminomaleonitrile, thiourea and hydrazine hydrate to afford the novel diazepine-dicarbonitrile derivatives 7a-d, the pyrimidine-2-thiol derivatives 9a-d and hydrazino-pyrimidines 10a-d respectively. Structures of the prepared compounds were elucidated by physical and spectral data like FT-IR, (1)H NMR, (13)C NMR, and mass spectroscopy. Some of the synthesized compounds were screened for their anticonvulsant activity and SAR.