Background Colour:

Click the structures and reaction arrows to view the 3D models and animations respectively

When a 1,2-diol 'pinacol' is treated with acid, a rearrangement takes place. The lone pair on the oxygen atom can stabilize the carbocation. By rearranging, the first-formed carbocation gets the positive charge into a position where the oxygen can stabilize it, and loss of a proton gives a stable ketone.