Condensation of p-sulfamylphenylhydrazine with diketones 1 afforded pyrazoles 2. Reaction of 2 with isocyanate and isothiocyanate derivatives gave the corresponding ureas 3 and thioureas 4 respectively. Cyclization of the thioureido group of compounds 4 by treating with ethyl bromoacetate, ethyl β-bromopropionate and α-bromoacetophenone afforded the corresponding thiazolidinone, thiazinone and thiazoline derivatives 5 , 6 and 1 respectively.