A phosphine-mediated construction of 1,4-oxazepines and 1,3-oxazines.