Click the structures and reaction arrows in sequence to view the 3D models and animations respectively
The epoxide is protonated and the epoxide then opens to yield a stabilised cation. The acetonitrile attacks the cation (Ritter) and then a 5-membered ring is formed due to the hydroxyl group attacking the triple bond intramolecularly.