A novel method is described for the synthesis of 2,4-disubstituted oxazole and thiazole derivates via the coupling of αdiazoketones with (thio)amides or thioureas using trifluoromethanesulfonic acid (TfOH) as a catalyst. This protocol is characterized by mild reaction conditions, metal-free, and simplicity and also features good functional group tolerance, good to excellent yields, and a broad substrate scope with more than 40 examples. Experimental studies suggest a mechanism involving 2-oxo-2-phenylethyl trifluoromethanesulfonate as the key intermediate.