For a formation of metal hydride of MgH2 or AlH3 under room temperature and ambient pressure, the cathode electrodes of metal and lithium hydride are electrochemically charged with Li anode electrodes in the system of Li-ion extraction. For MgH2 formation, the VC (Voltage-Composition) curve of Mg + 2LiH during charge shows a plateau voltage at 0.6 V until the final composition of 1.05 Li extraction. After charging MgH2 phase is observed by the XRD measurement. Therefore MgH 2 is produced by the electrochemical charge from Mg and LiH. For AlH3 formation, Al + 3LiH is charged until the final composition of 0.6 Li at a plateau voltage of 0.8 V which corresponds to the reaction between Al and LiH for the formation of AlH3. In the XRD profile after charging AlH3 phase is not detected although the intensities of Al and LiH decrease compared with these before charging, which suggests the reaction leading to the formation of AlH3.