Introducing sustainable energy resources is a promising technique to overcome the growing demands for envi-ronmentally friendly and low-priced energy. Presented work carries out the design, analysis, and optimization process of an original multigeneration facility to produce power, cooling, heating, freshwater, and hydrogen. Energy, exergy, exergoeconomic, exergoenvironmental, and environmental assessments are conducted to investigate essential performance indicators. The multi-objective particle swarm optimization algorithm is applied to determine the most optimal conditions for system operation. Obtained results from the exergy study reveal that the solar cycle contributed the most to exergy destruction around 39.5 % of overall value. Also, the exergoenvironmental assessment identifies that the exergoenvironment factor, exergy stability factor and envi-ronmental damage effectiveness are 1.35, 0.82, and 3.67, respectively. Also, obtained results from the optimi-zation show that the optimum condition for system operation leads to economic and technical parameters improvement. The total unit cost of the product, the exergy efficiency, work output, and Levelized costs of water, hydrogen, and electricity are 61.2 US$/GJ, 41.07 %, 48.32 kW, 5.58 US$/m3, 2.99 US$/kg, and 6.32 cent/kWh. Also, the system avoids the emission of 2965.45 tons of CO2.