F-doped TiO2 is synthesized and applied as a mesoporous layer for PSC.
The oxygen vacancy in TiO2 is greatly reduced by fluorine doping.
Efficiency of PSC boosts by 40% as the application of F-doped TiO2.
It presents a new effective way to improve PSC efficiency.