Background & Aims of the Study: Anaerobic baffled reactor (ABR) is one of the low-cost wastewater treatment systems; however, it has some limitations, such as insufficient standard nutrient outflow. Accordingly, it should be studied and developed. This research aims to determine the efficiency of a five-sectional reactor pilot and to upgrade it with an integrated aerated media filter in the reactor (integrated reactor) for municipal wastewater treatment. Materials and Methods: This study was performed on a laboratory scale with field conditions in the Khoy City wastewater treatment plant. The ABR reactor operated for 270 days with a hydraulic retention time (HRT) of 48, 36, 24, and 18 hours, respectively. The Integrated anaerobic baffled reactor (IABR) was operated for 35 days with 24 hours of HRT, i.e., aeration time of 5 hours. The reactors were fed in line from the inflowing wastewater to the treatment plant. A 24-hour combined sampling was performed 224 times from the inflow and outflow of the system, and volatile suspended solids, total kjeldahl nitrogen (TKN), total phosphorus (TP), biochemical oxygen demand (BOD), chemical oxygen demand (COD), and Total Suspended Solids (TSS) parameters were measured and compared with the effluent disposal standard. Results: The launch of ABR lasted 105 days, and its helpful operation lasted 200 days. In 18 to 48 hours, the reactor removed 79% to 91% of COD, 9% to 20% of TKN, 19% to 30% of phosphorus, and 89% to 94% of TSS. The IABR reached the effluent disposal standard in terms of TSS, BOD, COD, and phosphorus under 24 hours HRT, i.e., aeration time of 5 hours, and increased the COD removal efficiency by 6% compared to ABR under 24 hours HRT and the same conditions. Conclusion: By integrating the final aerobic media filter in ABR while reducing the required HRT by 50%, its efficiency in achieving the effluent disposal standards increased compared to ABR. Therefore, this system can be used to treat municipal wastewater.