The invention relates to a livestock and poultry breeding wastewater treatment technology. The livestock and poultry breeding wastewater treatment technology comprises the steps that water in a septic tank enters an artificial grid, so that impurities are removed, and then water enters an adjusting tank; wastewater in the adjusting tank is lifted by a lift pump to enter a cavitation air floatation tank, a flocculating agent is added so as to generate flocculent precipitates, the wastewater flows into an anaerobic tank, phosphorus contained in phosphorus accumulating bacteria is released, the wastewater flows into a tank A, water flowing out of the tank A flows into a contact oxidation tank, and organic matters in the wastewater are oxidized and decomposed; the wastewater flows into a secondary sedimentation tank and is subjected to solid-liquid separation, precipitated liquid supernatant enters a disinfecting tank, ClO2 is added to the disinfection tank for disinfection, and yielding water reaching the standards is discharged through a standardized exhaust port; and the sludge treatment is carried out. The livestock and poultry breeding wastewater treatment technology has the advantages that the technological process is simple, the anaerobic biochemical treatment and the aerobiotic biochemical treatment are combined, nitrogen and phosphorus are removed; sludge is rich in phosphorus and has very high fertilizer efficiency; and the comprehensive energy consumption is low, the high-efficiency energy conservation is realized, the shock resistance is strong, the control requirements are low, and the secondary pollution is avoided.