Reducing water resources and increasing demand for safe drinking water requires attention to water resources that can be returned to nature or can be used in industry or agriculture. In this regard, the use of optimal and effective methods for wastewater treatment and development is very important. In order to increase the efficiency of the wastewater treatment system and in order to reduce the pollution load of the effluent, it is very important to predict the quality of the treated effluent. In this research work, using genetic algorithm and neural network method, the effluent treatment system of Azerbaijan Pegah factory has been modeled in order to optimize the results using genetic algorithm and neural network method. The effluent treatment process should be carried out in order to anticipate the removal and disinfection of the remaining carbon materials and microbial contaminants according to the BOD5 and COD data that determine the quality of the effluent. The results show that the combination of the above two algorithms has been successful in predicting the output data compared to the actual data and there is an 87% matching of the data.