The reaction of methyl 3-hydroxythiophene-2-carboxylate (I) with PCl5 in refluxing CCl4 gives 3-chlorothiophene-2-carboxylic acid (II), which by treatment with NaHSO3 and Cu in basic water at 143 C in a pressure vessel is converted into 3-sulfothiophene-2-carboxylic acid (III). The esterification of (III) with refluxing methanol affords methyl 3-sulfothiophene-2-carboxylate (IV), which by reaction with refluxing SOCl2 yields methyl-3-chlorosulfonylthiophene-2-carboxylate (V). The condensation of (V) with sarcosine ethyl ester (VI) in hot CHCl3 gives methyl-3-(N-ethoxycarbonyl-methyl-N-methylsulfamoyl)thiophene-2-carboxylate (VII), which is cyclized by treatment with sodium methoxide in refluxing methanol affording 3-ethoxycarbonyl-4-hydroxy-2-methyl-2H-thieno-[2,3-e]-1,2-thiazine-1,1-dioxide (VIII). Finally, this compound is condensed with 2-aminopyridine (IX) in refluxing toluene.