On the first step, the base reversibly deprotonates the OH-group, breaking the OH-bond, and pushing its electron pair on oxygen.

On the second step, the olkoxide donates an electron pair to the beta-carbon, bonds with it, and pushes the Cl- away, breaking the C-Cl bond and forming a three-membered epoxide ring.

Free Web Hosting