[NH2:1][C:2]1[S:3][C:4]([CH3:13])=[C:5]([CH3:12])[C:6]=1[C:7](OCC)=[O:8].O.[CH:15]([NH2:17])=O>>[CH3:12][C:5]1[C:6]2[C:7]([OH:8])=[N:17][CH:15]=[N:1][C:2]=2[S:3][C:4]=1[CH3:13]The mixture of ethyl 2-amino-4,5-dimethylthiophene-3-carboxylate (30 g, 0.15 mol) in 150 mL of formamide was heated at 180° C. for 4 h and cooled down. The mixture was poured into 200 mL of water and filtered. The solid was collected and recrystallized from ethanol to afford 5,6-dimethylthieno[2,3-d]pyrimidin-4-ol as yellow solid (23 g, 85%).