Synthesis of β-halo-pyrrolidinones through a tandem sequence of 5-endo halolactamization and C-H oxidative functionalization.