Reverse electrodialysis is a technology based on membranes which gets electricity from a mixing of two water streams with different salinities. It commonly uses anion exchange membranes (AEM) and cation exchange membranes (CEM). AEMs are used to allow the pass of anions and obstruct the pass of cations and CEMs are used to do the opposite. The cations and anions in the high salinity water moves to the low salinity water, cations passing through the CEMs and anions through the AEMs. This phenomenon can be converted to electricity.