The directed movement of ions to establish or maintain an electrochemical gradient across a membrane by means of some agent such as a transporter or pore.
establishment or maintenance of transmembrane electrochemical gradient