Over the past decade, the efficiency of perovskite solar cells (PSCs) has achieved remarkable development. Since Miyasaka et al. reported PSCs for the first time in 2009, and the power conversion efficiency (PCE) of PSCs has increased from 3.8% to 25.7%. [1,2] Despite organic-inorganic PSCs have achieved high efficiency, the containing methylammonium (MA − ) and formamidinium (FA − ) ions are not excellent in durability due to their volatility. MA − and FA − ions are easy to escape and volatilize under the high working temperature. [3] Accordingly, the development of non-volatile all-inorganic CsPbX 3 (X = I, Br) is more likely to become a thermally stable broad band gap top cell. [4,5] Replacing the traditional organic FA − or MA − ions with inorganic Cs + ions to generate an all-inorganic perovskite with good thermal and photoelectric characteristics. Because of its adjustable band gap (Eg, it may be changed between 1.73 and 2.30 eV, it is suitable for use as a series solar cell. [6] At present, PCE of inorganic CsPbI 3 PSCs has reached 21%. [7] Inorganic PSCs have excellent stability, especially CsPbI 2 Br PSCs have high efficiency and good stability at the same time, so they have attracted more and more attention. [8][9][10] Besides, carbon electrode material is hydrophobic so it can prevent perovskite from moisture corrode, and it is cheaper than common electrode materials such as Au and Ag. Therefore, carbon has the potential to be a substitute for the common expensive metal electrodes of PSCs. [11,12] Defects are mainly distributed in the surface and grain boundary of perovskite films, non-radiative recombination easily occurs in these defects, resulting in the loss of opencircuit voltage (V OC ) and PCE. [13] Interface engineering is a series of methods to achieve high PCE and stable PSCs. Relevant research shows that some properties of the bottom interface of perovskite layer, such as defect density, carrier mobility, roughness and wettability, greatly affect the photoelectric performance and stability of PSCs. [14] The electron transport layer (ETL) is an important part of PSCs, and a good ETL is beneficial to the extraction of carriers and the growth of high-quality perovskite crystals in n-i-p structure In recent years, carbon-based CsPbI 2 Br perovskite solar cells (PSCs) have attracted more attention due to their low cost and good stability. However, the power conversion efficiency (PCE) of carbon-based CsPbI 2 Br PSCs is still no more than 16%, because of the defects in CsPbI 2 Br or at the interface with the electron transport layer (ETL), as well as the energy level mismatch, which lead to the loss of energy, thus limiting PCE values. Herein, a series of cadmium halides are introduced, including CdCl 2 , CdBr 2 and CdI 2 for dual direction thermal diffusion treatment. Some Cd 2+ ions thermally diffuse downward to passivate the defects inside or on the surface of SnO 2 ETL. Meanwhile, the energy level structure of SnO 2 ETL is adjusted, which is in favor of the transfer of electron carriers and b...