A novel non-biomimetic synthesis of horsfiline has been developed. The key pyrrolidine forming reaction is the 1, 3-dipolar cycloaddition of the thermally generated N- methylazomethine ylide to a suitable 3-alkylidene-indolin-2 (3H) one. The same strategy was also applied to the synthesis of pure (R)-(−)-enantiomer.