The synthesis of acetic 2-{[1-methyl-2-(4-oxo-5,6,7,8-tetrahydro-4H-benzo [4,5]-thieno[2,3-d] [1,3-oxazin-2-yl)ethylidene]amino}-4,5,6,7-tetrahydrobenzo[b]thiophene-3-carboxylic acid anhydride 5 and 2-(oxopropyl)-5,6,7,8-tetrahydro-4H-benzo-[4,5] thieno[2,3-d][1,3]oxazin-4-one 7, has been achieved in three steps from ethyl 2-amino-4,5,6,7-tetrahydrobenzo[b]thiophene-3-carboxlate 1 via the reaction with ethyl acetoacetate followed by hydrolysis and acetic anhydride-induced cyclization. The 2-substituent in compound 5 has two functional groups i.e. active methylene and acid anhydride which are suitably located for intramolecular transformation. Thermal and/or base catalyzed intramolecular cyclization of 5 afforded 2-(4-acetoxy-(hydroxyl)-2-methyl-5,6,7,8-tetrahydrobenzo[4,5] thieno[2,3-b]pyridin-3-yl)-5,6,7,8-tetrahydro-4H-benzo[4,5]thieno[2,3-d][1,3]oxazin-4-one 10 and 9 respectively. Treatment of 5 with hydrazine hydrate, aromatic and/or heterocyclic amines induced the same intramolecular cyclization with a concomitant oxazine-pyrimidine interconversion to give 3-amino(aryl or heteryl)-2-(4-hydroxy-5,6,7,8-tetrahydrobenzo-[4,5] thieno[2,3-b]pyridin-3-yl)-3,4,5,6,7,8-hexahydrobenzo[4,5] thieno[2,3-d] pyrimid in-4-one 11-14 respectively.