The reaction of 2-piperidineethanol (I) with acrylonitrile (II) gives N-(2-cyanoethyl)piperidine-2-ethanol (III), which by treatment with SOCl2 is converted into the chloronitrile (IV). The cyclization of (IV) with NaH affords 3-cyanoquinolizidine (V), which by hydrolysis with ethanol and HCl yields ethyl quinolizidine-3-carboxylate (VI). The Grignard reaction of (VI) with 2-thienylmagnesium bromide gives thienyl-3-quinolizidinyl methanol (VIII), which is dehydrated with HCl ethanol to afford 3-(di-2-thienylmethylene)quinolizidine (IX). Finally, this compound is quaternirzed with methyl bromide in acetone.