Upon base treatment of N-hetaryl substituted heptynone esters of type 9 an efficient ring closure takes place affording cyclohexenone derivatives 11 which undergo a further anionic cyclization to provide tri- and tetracyclic quinolizinone derivatives 12 as final products.