Palladium-catalyzed C−H arylation of electron-enriched heteroarenes with aryl bromides and aryl chlorides proceeds in the presence of LiO-t-Bu as a base. The reaction allows one-pot synthesis of differently substituted 2,5-diarylthiazole with the same catalyst system by switching the solvent and the amount of base.