New 1,2,3-thiadiazole and 1,2,3-selenadiazole derivatives, 14-23, were prepared from the ketones 1-5 via the corresponding semicarbazones or hydrazones 6-12. The Hurd-Mori and Lalezari methods were used, respectively, for the preparation of these 1,2,3-thiadiazole and 1,2,3-selenadiazole derivatives. The intermediate 13 was also trapped, separated and fully characterized. These derivatives are important for photocrosslinking processes and due to their potential biological activity.