A single-step hydrothermal synthesis of a TiO2-Mil-125 composite was applied for the first time to produce a depleted perovskite/TiO2-MOF heterojunction solar cell with 6.4% power conversion efficiency (PCE), characterized by durable stability in air.