The condensation of N-methyl-4-hydroxyisocarbostyril (I) with epichlorohydrin (II) by means of sodium methoxide in hot methanol gives 4-(2,3-epoxypropoxy)-N-methylisocarbostyril (III), which is then treated with tert-butylamine (IV) in methanol, and with HCl.