In these papers we will review the technology and economy to produce hydrogen by wind energy so that the use off-peak period in day to produce hydrogen and then use the hydrogen produced to produce electricity in the peak period and apply to one of the Moroccan cities called Dakhla and compare the amount of costs consumed to produce electricity from this technology by The price of electricity from the main generating station between the economic benefit of electricity production by wind and hydrogen where this study aims to give a scheme for the production of electricity renewable energy, which can be applied to any other city of Cities of the world through which it can ensure the production of electricity continuously and clean and non-polluting environment.