The cyclization of p-methoxyacetophenone (I) with thiourea (II) by means of SO2Cl2 gives 4-(p-methoxyphenyl)-2-aminothiazole (III), which is then reacted with ethoxalyl chloride (IV) in presence of a base to afford F-1865.