Indoloquinoline alkaloid cryptolepine and pyridocarbazole alkaloid ellipticine are of great interest because in vitro and in vivo studies revealed their good cytotoxic properties. In order to obtain some biologically active analogs of these compounds, we developed a synthesis based on the photocyclization of tertiary N-substituted enaminones derived from 1,3-cyclohexandione and 3 or 6-aminoquinoline