In this work, we describe the synthesis of new 2,4,5-trisubstituted-1,3-thiazoles and 1,3-selenazole achieved by an easy one-pot four-step procedure. Expected compounds were obtained in good yield from dimethyl cyanodithioimidocarbonate, which was the common starting material for the preparation of all 1,3-thiazoles and 1,3-selenazoles. Chemical diversity was introduced on thiazole and selenazole rings