The grain boundary defects related non-radiative recombination, I− migration, and lead leakage problems are the foundational and fundamental aspects for the perovskite solar cells. Herein, covalent triazine frameworks (CTFs) are introduced into the …