The properties of the buried interface between electron transport layer (ETL) and perovskite is critical factors to influence the performance of conventional perovskite solar cells (PSCs). Herein, functionalized triazine-based graphdiyne (Tz-GDY) nanospheres are prepared and employed to build up electron collection center and optimize the SnO2/perovskite interface. The pyrazine ring with homogeneous N element distribution and alkyne bond of Tz-GDY can passivate the undercoordinated Sn to remodel the electron density distribution around the Sn atoms and thus effectively eliminate the trap defects and inhibit the recombination loss significantly. In addition, the as-prepared Tz-GDY based nanospheres uniformly distribute at the SnO2/perovskite interface and a larger grain and more uniform perovskite film is obtained due to the increased contact angle. Moreover, Tz-GDY nanospheres can reduce the fermi energy level to facilitate the electron injection. Consequently, the Tz-GDY modified PSCs exhibits a champion power conversion efficiency of 24.83 % with effectively suppressed hysteresis. Our strategy proposes a more efficient electron collection method in buried interface, providing a guidance for constructing efficient PSCs.