This study aimed to find a suitable media for treating biogas effluent wastewater from pig farms. the research recycled polyethylene foam (PE foam) as a material and used it as a microbial adhesion media and immersed in the wastewater of an Aerotank model. The experiment was performed with 3 treatments and three repetitions, including: Aerotank with media from PE foam (treatment 1); Aerotank with MBBR biochip (treatment 2); and Aerotank without media (treatment 3(control)). The results showed that the PE foam media exhibited higher treatment efficiency than the commercially available media (MBBR biochip) and the control, with average removal efficiencies of 79.44%, 62.46%, 79.63%, and 84.95% for COD, TSS, BOD, and N-NH3, respectively. The media from PE foam can be used as a replacement for commercially available media and an option for improving the quality of biogas effluent wastewater.