A Smart city is essentially expected to diminish the utilization of assets and upgrade efficiencies. In practically any region, effectiveness brings about energy saving, diminished energy force, supportable monetary turn of events, upgraded usefulness, a safeguarded climate, and in particular, participation with the environmental change fight. In spite of the fact that financial plan, innovation, and the necessary framework are significant imperatives for helpless urban areas to accomplish shrewd and economical city objectives, the advantages of brilliant urban areas are numerous for helpless urban areas contrasted with creating and created urban areas. Helpless urban areas accomplish worked on living conditions, security, wellbeing, financial turn of events, administration, and personal satisfaction as well as accomplishing supportable energy objectives, and this study tries to distinguish those shrewd sustainable power and energy production systems that are monetarily achievable and in fact relevant in helpless urban communities. Renewable energies are a sustainable, unlimited, and decarbonized solution to address future energy challenges. In this context, Morocco has considerable lead vantage to position itself on this promising market. Furthermore, renewable energies have been highlighted as a key strategic source for the country’s green growth. Morocco has adopted the renewable energy path through a strategy targeted at the development of solar, wind, and hydroelectric power to boost its energy policy by adapting it to the challenges posed by today’s world. Nowadays, Morocco is facing a challenge to reach 52% by 2030 of its total renewable energy capacity, which will exceed 42% by the end of 20221