Cl[C:2]1[CH2:3][CH2:4][N:5]([C:10]([O:12][CH2:13][CH3:14])=[O:11])[CH2:6][C:7]=1[CH:8]=O.C(N(CC)CC)C.[C:22]([O:26][CH2:27][CH3:28])(=[O:25])[CH2:23][SH:24].[OH-].[K+]>N1C=CC=CC=1.O>[S:24]1[C:2]2[CH2:3][CH2:4][N:5]([C:10]([O:12][CH2:13][CH3:14])=[O:11])[CH2:6][C:7]=2[CH:8]=[C:23]1[C:22]([O:26][CH2:27][CH3:28])=[O:25]To a solution of ethyl 4-chloro-5-formyl-3,6-dihydropyridine-1(2H)-carboxylate (1 eq) obtained from step II in pyridine was added triethyl amine (1.5 eq.), ethyl thioglycolate (1 eq.) at 0° C. and the reaction mixture was stirred for overnight. A solution of KOH (1.5 eq) in water was added at 0° C. and further stirred at room temperature for 1 h Water was added and the organic layer was separated, dried over anhydrous Na2SO4 and concentrated under reduced pressure to afford crude product, which, on purification by column chromatography afforded the desired diethyl 6,7-dihydrothieno[3,2-c]pyridine-2,5(4H)-dicarboxylate.