The diazotation of 4-aminophenol (I) with NaNO2 and HCl followed by reaction with isopropylmercaptane (II) gives 4-(isopropylthio)phenol (III), which is condensed with epichlorohydrin (IV) by means of NaOH in water to yield 3-[4-(isopropylthio)phenoxy]-1,2-epoxypropane (V). Finally this compound is condensed with n-octylamine (VI) in refluxing ethanol and treated with HCl.