The anodic oxidation of the N-cyanomethyl-oxazolidine system in acetonitrile at a platinum electrode, in the presence of a mixture of chloride and bromide ions, regioselectively affords the corresponding monochloro- or dichloro- products alpha to the N,O-acetal function in goods yields.