The Moroccan renewable energy sector has a new legal framework that finally will allow producers to sell surplus electricity to establishments connected to the high voltage or very high voltage grid of ONEE, the state owned utility responsible for the provision of electricity, as well as the operation of the transmission system.