Zwitterions formed from the addition of triphenylphosphine to dialky acetylene-dicarboxylates attack the nucleus of both 1H-perimidine (1) and 1H-benzo[d]imidazole (9) to form novel pyrido[1,2,3-cd]perimidine and imidazo[4,5,1-ij]quinoline derivatives in moderate yields (64-72%). The biological activity of the products has been studied. Compound 3a was found to extend life span of wild type Caenorhabditis elegans under standard laboratory conditions. Both heat stress and induced chemical stress resistance of wild type C. elegans were improved in a reverse dose-dependent manner due to 3a treatment. In addition, treatment of worms with compound 3a significantly attenuated the formation of advanced glycation end products in a reverse dose-dependent manner.