The title compounds (4b-d) together with the benzothiazolines (5b-d) have been obtained by a reaction between 2,2′-dithiodianiline (1) and β-keto esters (2b-d). The reaction between 1 and the β-keto ester 2a gives 1,4-benzothiazine 3a in addition to the benzothiazoline 5a. It has been established that the 1,4-benzothaizines 4b-d undergo an acid-catalysed thermal rearrangement involving a [1,3] shift of the sulfur atom, giving rise to the isomeric 1,4-benzothiazines 3b-d.