The utilization of multi-effect distillation (MED) in thermal desalination processes is more widespread owing to lower energy consumption. The focus of this paper is to optimize the performance of MED through process optimization. It aims to identify the optimal operating conditions that result in maximum water and power production. Additionally, it investigates the potential of using solar renewable energy as a substitute for the current fossil energy source. Subsequently, a switch to solar energy was made with a focus on an economically viable approach. The research explored the best-suited collector and fluid for heat transfer among the 8 types of molten salt for use in the collector. Subsequently, an economic and sensitivity analysis was conducted using this procedure. The outcomes indicated that by enhancing the stated procedure, it was found that 27.93 Megawatt (MW) of heat would be required when 6938 ton/h of natural gas are burned. Additionally, the 4-effect MED process produced 6.123 MW of electricity and 116.5 cubic meters per hour (m3/h) of freshwater. The gain output ratio (GOR) of the process saw an uptick from 2.75 to 3.328, whereas MED efficiency showed progress from 13.76 to 49.218 %. The parabolic trough collector (PTC) collector outperforms the linear Fresnel collector (LFC) and solar dish (SD) collector in terms of efficiency among other results. To store heat for the rest of the day and night and supply thermal energy for the entire process, 155,542 square meters (m2) of this collector are necessary. Additionally, in regards to the thermal fluid of the PTC collector, coastal chemical registered heat transfer salt (HITEC salt), a commercial mixture of solar salt, has exhibited superior performance over other molten salts (for a total expenditure of 50 million dollars over two decades). In addition, the economic analysis has indicated a return rate of 32.46 % for the investment and a capital recovery period of 3.08 years for the process. The implementation of the mentioned process in renewable mode results in the avoidance of 18.5 tons per hour (ton/h) of carbon dioxide (CO2) emissions.