In this study, the removal of five imidazolium-based ionic liquids from water was accomplished by a heterogeneous electro-Fenton treatment.