The synthesis and cyclization reactions, leading to spirocyclic medium ring-sized diolides, of o-(hydroxymethyl)xylylene monoesters of sialyl thioglycosides is described. Cyclization yields and stereoselectivities are found to vary as a function of the anomeric stereochemistry of the thioglycoside and of the N5 protecting group, and these effects are discussed in terms of the reaction mechanism. Cyclization in the presence of acetonitrile results in the isolation and characterization of a Ritter-type N-sialyl acetamide, which affords strong evidence for the participation of acetonitrile in the form of sialyl nitrilium ions.