The rapid growth of the global population in recent decades and the consequent need for protein supplies has led to the construction of large production units of dairy cattle. Increasing the number of domestic cattle causes a high volume of solid-liquid wastewater (containing a lot of solid particles).In order to control this wastewater and prevent its entry into urban sewage it must be drained in proper place. The wastewater can be used as a source of Manure fertilizer and recycled water.Two parallel structures have been investigated for treatment of this waste water. The first structure involves the anaerobic process along with the advanced oxidation process, the second structure comprising the process of acid hydrolysis and the advanced oxidation process. In order to achieve maximum removal of organic matter and minimum cost, the optimal point of each process is important. In the anaerobic process, the optimal operating conditions including the 45-day hydraulic retenation time and the ratio of volatile solid wastewater to volatile solid sludge were equal to 2. In the oxidation process, Sulfatec radicals and zero iron have been used. The advanced oxidation process of the first structure, the optimal conditions for the operational variables of the Design Expert software were 6.6 pH, 626 ammonium persulfate concentration and 40 minutes, and the advanced oxidation process of the second structure, the optimal conditions of the operational variables of software were pH 6.29, ammonium persulfate 722 and 40 minutes. In these optimal conditions, in the first structure, removal of COD, BOD 5 and suspended solids were 57% , 72%, 84% respectively, and in the second structure removal of soluble COD, turbidity and suspended solids were 33%, 30% and 90%, respectively. Optimum operating conditions of the acid hydrolysis process are the ratio of sewage to acid 43.3%, temperature 100.3 ° C and time 0.5 hours. Under these conditions, the optimal removal of soluble COD, total solids and suspended solids is 37%, 58% and 85%, respectively