A core–shell heterostructured CuFe@NiFe PBA was designed for capacitive deionization with high desalination performance and long recyclability.