The heterojunction of 2D g-C3N4 thin nanosheets and double-shelled ZnSnO3 nanocubes was prepared via a reliable, convenient, and cost-effective technique to achieve efficient photocatalytic activity. The unique double-layered structure of ZnSnO3 helps to absorb more visible light and provides a shorter diffusion path for charge carriers. The integration of some wrapped g-C3N4 nanosheets to the outer layer of ZnSnO3 increases the multiple active sites and specific surface area (SBET) to boost the photocatalytic reaction. The synergistic effect of heterojunction and oxygen vacancies effectively stimulates the generation and spatial charge separation. Furthermore, as-synthesized 2D/3D heterostructure develops an interfacial electric field that plays an efficient role in charge migration and enhances the redox ability of the material. The degradation efficiency for MB (99.5 %, within 30 mins), TC (98.2 %, within 120 mins), H2 production rate (1799 μmol g−1 h−1) and CO evolution rate (23.6 μmol g−1 h−1) confirms the excellent performance of multifunctional photocatalyst. Additionally, DFT calculations of electronic band structure and density of states are in excellent agreement with experimental results. This work highlights the new perspective on designing suitable nanostructures for photocatalytic applications.