Alcohols react with hydrogen halides to produce haloalkanes.
The alcohol is heated under reflux with a sodium halide and sulfuric acid.
Sodium halide reacts with sulfruic acid
This forms the hydrogen halide which then reacts with alcohol to form the haloalkane.
This is a substitution reaction.