By condensation of 2-methoxymethylpyridin-3-ylmethylamine (I) with 2-bromoacrylonitrile (II) by means of triethylamine in toluene.