3D TiO2 nanowire with oxygen vacancy in N-doped graphene aerogel (OVTNW/NGA) enhances Li–S batteries. This heterostructure improves cyclability, rate efficiency, and areal capacity. Defect engineering boosts adsorption and catalysis, promising improved Li–S batteries.