The Beckmann rearrangement turns an oxime, in strong acid, into an amide: the hydroxy group, activated as a leaving group, departs while the group anti to it migrates from carbon to nitrogen; water adds to the nitrilium ion formed, and tautomerisation gives the amide.
Chemistry · Glossary