A mixture of 4-cyanophenol, NaOH, and ethanol was mixed in a pressure bottle while heated to 80° C. Hydrogen sulfide gas was then introduced, and the pressure increased to 30-60 psi until the thioamidation was determined to be complete by HPLC. Without isolating the thioamide product, HCl was added to the bottle until the pH was below 3.5, the H2S gas was removed, and the bottle was placed under a vacuum for 20 minutes at 30-40° C. The reaction was then heated to 70° C, and ethyl 2-chloroacetoacetate(1.1 eq.) was added to the reaction solution. The reaction was mixed under reflux for 2-3 hours, treated with enough H2O to dissolve the NaCl salt in the reaction mixture, cooled to room temperature, treated with enough water to precipitate the product, and the solid was collected by filtration. The precipitate was washed with water and dried at 80° C. with nitrogen bleeding to provide Ethyl 2-(4-hydroxyphenyl)-4-methylthiazole-5-carboxylate.