The invention discloses the preparation and application of an ultra-thin two-dimensional layered composite photocatalytic material. After heating, heat preservation and natural cooling of urea, heating again, heat preservation, natural cooling and grinding, g-C is obtained. 3 N 4 nanosheets; the g‑C 3 N 4 Disperse the nanosheets in deionized water, then add graphene oxide solution, ultrasonically stir, cool to reflux, stir, after cooling, centrifuge and wash to obtain g‑C 3 N 4 / rGO complex; the In(NO 3 ) 3 ·5H 2 O, cetyltrimethylammonium bromide and thioacetamide were added to deionized water, stirred ultrasonically, and then added g‑C 3 N 4 / rGO composite, ultrasonic stirring, cooling and reflux, stirring, cooling, centrifugal washing, and vacuum drying to obtain an ultrathin two-dimensional layered composite photocatalytic material. The preparation method has a simple process, and the prepared photocatalytic material has a wide visible light response range, and has an efficient effect of degrading tetracycline hydrochloride under visible light irradiation.