Darzen's method: Alkyl halides are prepared when thionyl chloride and alcohols are refulxed in presence of pyridine. R−OH+SOCl2pyrefluxR−Cl+SO2+HCl
By products of this reaction are gases (SO2,HCl) so can be easily removed from the reaction mixture.