[CH3:1][O:2][C:3]1[CH:4]=[CH:5][C:6]2[O:10][C:9](S)=[N:8][C:7]=2[CH:12]=1.CN(C=O)C.S(Cl)([Cl:20])=O>>[Cl:20][C:9]1[O:10][C:6]2[CH:5]=[CH:4][C:3]([O:2][CH3:1])=[CH:12][C:7]=2[N:8]=1The mixture containing 5-methoxybenzoxazole-2-thiol was heated in thionyl chloride with a drop of DMF. The resultant mixture was concentrated and partitioned between ethyl acetate and water. The organic layer was washed with brine and dried and concentrated. Purification on a silica gel column gave 2-chloro-5-methoxybenzoxazole as a white solid. MS: MH+=184.