Systems and methods for the desalination of seawater or brackish water for the purpose of obtaining potable water. Systems may include a combination of electrodialysis and electrodeionization modules. The system configuration and process controls may achieve low energy consumption and stable operation.