Water is the most important element for industrial and economic progress. Today, as world population grows and due to limited water supplies, freshwater supplies are a major concern for many countries. In this study, the exergy analysis of the solar hybrid desalination system has been investigated. In this system, unlike typical conventional systems, a compression refrigeration cycle has been used instead of an absorption refrigeration cycle. For achieving this goal, the exergy equations for each component . o O f the system are written and solved . Then T hen the efficiency of the different parts of the cycle and the total cycle has been calculated. It is shown that the amount of exergy extinction during the compression refrigeration cycle is more than in the other parts of the system, which the minimum amount of it happens in the winter and the maximum amount of it in the summer. It is also seen that the highest efficiency is due to the compression refrigeration cycle it and also focuses on the Economic economic and functional optimization of the system, and it is shown that the optimal mode of the system is the use of 8 to 12 cells in the MED desalination. Keywords: distillation, mechanical refrigeration system, solar collector, exergy, desalination