Efficient method for the synthesis of pyranoquinoline, thiopyranoquinoline, thienoquinoline, and naphtho[2,7]naphthyridine derivatives catalyzed by iodine.