Dedicated to the memory of Mrs. Ada CastleThe ring transformation of 2,4,6-triarylpyrylium salts 1 with 2-methyleneindolines of the type 3 in which the nitrogen atom is connected with the ortho-carbon of the benzene ring by a (CH 2 ) n chain is studied. Whereas the reaction of the pyrylium salts 1 with the 2-methylene-1,2,4,5-tetrahydropyrrolo[3,2,1-hi]indole 3a (n = 2), generated in situ from the 4-methyl-2,5-dihydro-1H-pyrrolo[3,2,1-hi]indolium perchlorate 2a, failed, the salts 1 react with the 2-methylene-1,2,5,6-tetrahydro-4H-pyrrolo[3,2,1-ij]quinolines 3b,c (n = 3) and the 2-methylene-1,2,4,5,6,7-hexahydroazepino[3,2,1-hi]indole 3d (n = 4), obtained in situ from the corresponding 2-methyl-1,4,5,6-tetrahydropyrrolo[3,2,1-i f]quinolinium perchlorates 2 b,c and the 2-methyl-4,5,6,7-tetrahydro-1H-azepino[3,2,1-hi]indolium perchlorate 2d, in the presence of triethylamine/acetic acid in boiling ethanol by a 2,5-[C 4 + C 2 ] transformation in high yield and diastereoselectivity to give the 1 ' , 2 ' , 5 ' , 6 ' -t e t r a h y d r o-4 'H-s p i r o [ c y c l o h e x a -2 , 4 -d i e n e -1 , 2 ' -p y r r o l o [ 3 , 2 , 1 -i j]quinolines] 5 and the 1,2,4,5,6,7h e x a h y d r o s p i r o [ a z e p i n o [ 3 , 2 , 1 -h i]indole-2,1'-cyclohexa [2,4]dienes] 6, respectively. The influence of the length of the (CH 2 ) n chain in 3 on the product formation and the diastereoselectivity can be explained by differences of the steric strain in the spiro compounds.