Alcohol is refluxed with thionylchloride to form alkylchloride. Gaseous products
SO2+HCl escape out from reaction mixture so that pure alkylhalide is obtained. For example, ethylalcohol is refluxed with thionylchloride to form ethylchloride.
CH3−CH2−OH+SOCl2reflux−−−−−→pyridineCH3−CH2−Cl+HCl↑+SO2↑