How zncl2 help in prepration of haloalkanes in groove process?

how zncl2 help in prepration of haloalkanes in groove process?

Role of anhydrous ZnCl2:
It helps cleave the C–O bond. Being a Lewis acid, it coordinates with the oxygen atom of the alcohols. This result in weakening of the C–O bond which ultimately breaks to form carbocations.