The photochemical isomerizations of the title barrelenes providing the corresponding semibullvalenes are described. The modes of competitive di-pi-methane and aza-di-pi-methane rearrangements depend on the substitutions on the heterobarrelenes. (C) 2003 Elsevier Ltd. All rights reserved.