The most efficient and economical way to implement technology of the hydrolysis of MgH2 or nanocomposites on its basis for the generation of hydrogen is in the use of solutions of citric acid due to (i) its availability and low cost; (ii) possibility to effectively control the process by controlling the temperature, along with Acid/MgH2 ratio in the reaction solution;