A Z-scheme of 2D/2D BiOCl/g-C3N4 nanosheet-like composite was prepared by hydrothermal method. The properties of prepared samples were well tested by XRD, FT-IR, PL, EIS, SEM equipped with EDS, XPS, UV–Vis DRS analysis. After the BiOCl nanosheets anchored on g-C3N4 nanosheets, the BiOCl/g–C3N4–3 composite exhibited a remarkable photocatalytic efficiency and antimicrobial activity for tetracycline (TC). About 97.1% of TC degraded within 60 min and the TOC removal rate of TC reached to 76.3% in 180 min. Moreover, the E.coli reduction of antimicrobial activity reached to 96.5% after 40 min illumination. Those excellent photocatalytic efficiency of BiOCl/g–C3N4–3 composite was contribution of the rapid charge transfer in Z-scheme system. Finally, 4 cycles of photocatalytic experiments revealed an excellent stability and reusability of BiOCl/g–C3N4–3 composite.