Conventional small-scale sewage treatment mostly adopts the principle of biological contact oxidation process, which has limited scope of application, low degradation rate of pollutants in sewage, and poor sewage treatment effect. Based on this, a new small-scale sewage treatment method was proposed by introducing photovoltaic photocatalysis technology and taking S sponge community in Ningnan County, Liangshan Prefecture as an example. First, hydrothermal method is used to prepare photocatalyst to provide basic guarantee for sewage treatment. Secondly, the rainwater garden model is simulated and designed to obtain the composition and content of small-scale sewage. On this basis, a rainwater garden photovoltaic photocatalytic water purification system is designed, which establishes an A/O integrated process by connecting the anoxic zone (A section) and aerobic zone (O section) in series to fully achieve the goal of sewage treatment. Experimental analysis shows that the new method can significantly improve the degradation rate of organic pollutants in rainwater garden wastewater, with a degradation rate of over 99% and a maximum degradation time of 10.97 seconds, indicating that the application effect of this method is good.