[H-].[Na+].[N+:3]([C:6]1[CH:10]=[CH:9][NH:8][CH:7]=1)([O-:5])=[O:4].I[CH3:12].[H][H]>CCCCCC.CN(C=O)C.CCOC(C)=O.O>[CH3:12][N:8]1[CH:9]=[CH:10][C:6]([N+:3]([O-:5])=[O:4])=[CH:7]1To sodium hydride (300 mg, 60% in mineral oil, 7.50 mmol) in a flask, which was washed with hexane twice, a solution of 3-nitropyrrole (500 mg, 4.46 mmol) and iodomethane (0.560 mL, 8.97 mmol) in DMF (4 mL) was added. Hydrogen gas evolved. The mixture was then stirred at room temperature for 20 h. Water and EtOAc were added. Organic phase was separated, washed with water, dried over Na2SO4, concentrated in vacuo to give 1-methyl-3-nitro-1H-pyrrole (494 mg).