[N+:1]([C:4]1[S:8][C:7]([C:9]([OH:11])=[O:10])=[CH:6][CH:5]=1)([O-:3])=[O:2].[CH3:12]O>>[N+:1]([C:4]1[S:8][C:7]([C:9]([O:11][CH3:12])=[O:10])=[CH:6][CH:5]=1)([O-:3])=[O:2]To a 500 mL round bottomed flask with a stirring bar, was added 5-nitrothiophene-2-carboxylic acid (4.62 g, 26.68 mmol) and MeOH (100 mL). This solution was cooled in an ice bath and dry HCl gas was bubbled through the solution till saturated. The reaction was equipped with a condensor and a drying tube and refluxed overnight. The solvent was then removed in vacuo to a yellow solid, which was then dissolved in EtOAc. This solution was washed with NaHCO3 (sat, aq) (3×), and brine (2×), dried (MgSO4), and filtered. Removal of the solvents in vacuo and drying of the product in vacuo yielded methyl 5-nitrothiophene-2-carboxylate as a tan solid.