In light of a sort of crisis of water scarcity which begins to loom worldwide as well as the economic constraints for achieving sustainable development, it becomes essential to find appropriate solutions to face this challenge. Morocco, which has considerable brackish water resources and an important solar resource deposit, is required to use desalination techniques; however, the reliability of such techniques can no longer be applied just in terms of their value as renewable sources of energy. The solution presented in this publication, establishes a rather reliable way to produce drinking water. The technique of desalination by reverse osmosis is considered in this study to be a promising technique. The objective of our study is the implementation of a prototype for desalination of reverse osmosis, which is a low-cost small unit used to treat brackish water based on solar energy.