Presently, the utilization of gasification slag in the context of wastewater treatment is constrained. Furthermore, the presence of dye wastewater and wastewater containing hazardous metals represents a significant threat to human health. Accordingly, the present study prepared a microelectrolytic filler (MF) from gasification slag via a high-temperature roasting method and evaluated its degradation performance in water containing organic matter and harmful metal ions. The impact of varying preparation conditions, including initial solution pH and MF dose, on the degradation process was examined. The removal of methyl blue was found to be 92.21% at an initial pH of 2, a reaction time of 300 min and a dosage of 40 g L-1. The removal of Cu(II), Cd(II), and Pb(II) metal ions was 97.32, 96.58, and 99.38%, respectively, at an initial pH of 4, a reaction time of 180 min, and a dosage of 10 g L-1. Following five cycles, the MF process demonstrated continued efficacy in the removal of dyes and heavy metals from the wastewater. A mechanistic analysis revealed that the water treatment process is not a single adsorption process. Instead, it was found that organic macromolecules undergo chain-breaking reactions, while heavy metal ions undergo redox reactions. The wastewater treatment process comprises a number of distinct strategies, including electrochemical reactions, adsorption, flocculation, and precipitation. These findings illustrate the potential of a gasification slag green recycling approach to treat waste with waste, in alignment with the principles of sustainable development.