α-Halohydrazones/ketoximes are transformed into trisubstituted pyrazoles/disubstituted isoxazoles by treatment with phosphine, acyl chloride, and a base. Mechanistic investigations revealed the in situ formation of azo/nitroso olefin intermediates which underwent a tandem phospha-Michael/ N- or O-acylation/intramolecular Wittig reaction to afford the heteroarenes in moderate to good yields. Further, proper functionalization of α-haloketoximes and a change of conditions allowed the chemoselective synthesis of chromenone-oximes as well as rearranged isoxazoles, thereby realizing a diversity-oriented synthesis.