Background and purpose: Municipal wastewater and oceans are recently considered as a source of water and sustainable energy due to lack of water and fossil fuels. The aim of this study was to use microbial desalination cells for desalination of saline water without energy consumption and simultaneous electricity production from wastewater treatment.Materials and methods: This experimental study was performed on a laboratory scale as a batch mode with synthetic and municipal wastewater. The anode was flat carbon graphite, and the cathode was carbon cloth with 0.5 mg/cm2 of Pt. Output voltage was measured and power and current density were calculated. Changes in pH, COD, EC, and chloride in the solution of the reactor vessel were evaluated and based on these changes, the parameters such as efficiency in COD reduction, the reduction rate of saline water EC and wastewater COD, and then columbic efficiency were calculated. Results: About half of EC in saline water reduced. COD removal efficiency in 25, 50 mM PBS and municipal wastewater was 86±1, 80±1, and 76±4 mg / L, the rate of COD removal was 10.74±0.62, 6.95±0.74, and 6.77±0.25 mg / L.hr, and the columbic efficiency was 24±2, 51± 3, and 25±0, respectively.Conclusion: Due to significant reductions in COD of wastewater and about half of the EC in saline water, this technology can be used for municipal wastewater treatment and saline water desalination without the need to use energy.