The invention discloses a sewage treatment system which comprises a collection tank, a biogas tank, a residue discharge tank and a biogas liquid collection tank; the biogas tank, which is a closed tank, is connected with the collection tank through a feed opening and has an impervious layer laid at the bottom; excreta, sewage or the like is placed in the methane tank and automatically form a biogas residue layer, a biogas liquid layer and a biogas layer after fermenting in the biogas tank, and a residue discharge opening, a liquid outlet and a gas collecting opening, which are communicated with the biogas residue layer, the biogas liquid layer and the biogas layer respectively, are arranged at the periphery of the biogas tank; the residue discharge tank is communicated with the residue discharge opening through a pipeline; the biogas liquid collection tank is communicated with the biogas tank through the liquid outlet; a biogas liquid purification system is connected with the biogas liquid collection tank. According to the sewage treatment system provided by the invention, biogas, biogas liquid and biogas residue, which are produced through centralized processing of sewage, are utilized effectively, so that all-around utilization of sewage can be realized; meanwhile, water and residue can be separated automatically through reasonable pipeline design, the sewage utilization rate is high, the engineering construction cost is low, the economic benefit is high, and large scale popularization can be performed easily.