5-(3-Aminophenyl)-10,15,20-tri(4-methylphenyl) porphyrinato Pd (II) and Pt (II) complexes (2a-Pd) and (2a-Pt), respectively, were prepared from 5-(3-nitrophenyl)-10,15,20-tri(4-methyl-phenyl)porphyrin via two-step reactions, and reacted with cyanuric chloride to produce corresponding porphyrin derivatives (3a-Pd) and (3a-Pt) with a dichlorotriazine ring. Aromatic polyimides were prepared using diamine (4); triazine dichlorides having porphyrin units (3a-Pd), (3a-Pt), (3c-Pd), and (3c-Pt); fluoro-functionality 6-(p-perfluorononenyl oxyanilino)triazine-2,4-dichloride (6); and tetracarboxylic dianhydride (5) in N-methyl-2-pyrrolidone (NMP) at an elevated temperature up to 300 8C. The resulting viscous polymeric solution was cast on a glass plate, affording well-proportioned reddish transparent films with number-average molecular weights of 25,000-38,000. Glass transition temperatures of the polymers were 230 8C; the films were stable up to 400 8C in air. The film emission spectra showed a broad peak 670 nm, similar to those of porphyrins (2a-Pd) and (2a-Pt) dispersed in a polystyrene matrix. While the luminescence of these polymer films was quenched with oxygen, it rapidly recovered under a deoxygenated atmosphere. The polyimide film sensitivity to oxygen was higher under low oxygen concentrations than those of porphyrins (2a-Pd) and (2a-Pt) dispersed in polystyrene.