3-Mercapto-1,2,4-triazin-5-one and 3-mercapto-1,2,4-triazoles were condensed with allyl bromide in the presence of base to afford the corresponding 3-allylthio compoundsThese compounds were regioselectively cyclized to give 2,3-dihydro-3,6-dimethylthiazolo[3,2-b][1,2,4]triazine and 2,3-dihydro-3-methylthiazolo[3,2-b][1,2,4]triazoles, resp.