Via Bischler-Napieralski cyclization of amide precursors as the key step, a series of diazapyrene derivatives were designed and successfully synthesized. Their crystal structures, optoelectronic properties, and acid-responsive feature were investigated, which demonstrated that the doping of nitrogen atoms to the pyrene framework remarkably modulates their physical and chemical properties.