The bromination of 1-allylhexahydro-4H-azepin-4-one (I) with Br2 in acetic acid gives 1-allyl-5-bromohexahydro-4H-azepin-4-one (II), which is cyclized with thiourea (III) in refluxing ethanol.