A phosphorimidate rearrangement for the facile and selective preparation of allylic amines.