An efficient method for the synthesis of nitropiperidones.