Aldehyde (I) was condensed with 3-aminopropanol (II) in refluxing benzene using a Dean-Stark trap to give imine (III) which, without purification, was in turn condensed with a-mercaptoacetic acid (IV) to afford thiazolidinone (V). Treatment of alcohol (V) with PBr3 gave bromide (VI). Then, reaction of (VI) with amine (VII) in the presence of K2CO3 in refluxing acetone produced the target compound.