Photocatalytic CO2 reduction for solar fuel generation and photocatalytic sterilization are highly desired green routes for sustainable environmental purification. Herein, a bifunctional self-standing nanosheet array of Z-scheme structured inorganic–organic heterojunction is synthesized via in-situ growth of ZnIn2S4 (ZIS) on carbon cloth (CC) followed by self-assembly with cobalt porphyrin (meso-tetra(4-sulfonatophenyl) porphyrin, CoTPPS). The obtained CC-ZIS-CoTPPS performed well in the photocatalytic CO2 reduction and antibacterial processes simultaneously in a portable photocatalytic system with a negligible amount of solution. Specifically, the optimized CC-ZIS-CoTPPS demonstrates more than 140 times enhanced CO evolution than pristine CoTPPS. Experimental and theoretical results imply that the enhanced photocatalytic CO2 reduction is associated with elevated light absorption, promoted charge separation, and improved CO2 activation in the inorganic–organic Z-scheme heterojunction. In addition, the self-standing nanosheet array possesses a mechanical cutting effect, which can kill bacteria adhering to the surface even in dark conditions. Moreover, CC-ZIS-CoTPPS achieved a 100 % killing rate under visible light irradiation by synergistically chemical and mechanical sterilization. Furthermore, CC-ZIS-CoTPPS exhibits efficient bifunctional photocatalytic photocatalytic CO2 reduction coupled with in-situ sterilization. This work presents an atomic perspective for developing innovative bifunctional photocatalysts, which hold great potential in portable devices to alleviate energy and environmental crises.