Energy storage at large scale is one of the most important challenges that needs to be solved in medium term to have an important impact in the electrical grid.Batteries seem to be strong candidates for this function, however, it is needed to improve all battery components, as electrodes and electrolytes, to be applied in large scale.Ionic Liquids (ILs) are interesting alternatives to be used as electrolyte in a battery, since they open a wide range of possibilities, as the use of metallic anodes and operation at high temperature.This work presents the study of electrodeposition of Mg using the IL N-butyl,methyl-piperidinium bis((trifluoromethyl)sulfonyl)imide ([BMP][Tf2N]) by several electrochemical and analytical techniques.The deposition/dissolution is irreversible in presence of high water concentration (50 mmol L -1 ), and a small reversibility of 7.4 % in dryer system (5 mmol L -1 ).EDS spectra show Mg presence in the electrode surface, however it is also observed the formation of passivating film.Besides this, it was also studied the electrochemical behavior of Cu in the IL [BMP][Tf2N], which presents a strong coordinating anion and in the IL N-butyl,methylpiperidinium tetracyanoborate ([BMP][B(CN)4]), which presents a weak coordinating anion.It was observed that the oxidation and corrosion of Cu depends strongly on the anions coordinating properties, while on [Tf2N] it was observed pitting corrosion and no metal passivation, the use of [B(CN)4] leads to salt (Cu[B(CN)4]) precipitation, causing the metal passivation.It was also observed that even at low water concentration there is the formation of oxide in both ILs.As the water affects the electrochemical behavior of the ILs, it was realized a study of the physicochemical properties of the IL 1-Butyl-2,3-dimethylimidazolium bis((trifluoromethyl)sulfonyl)imide ([BMMI][Tf2N]) and its mixture with Li + with different amounts of water.The Li + presence provokes a huge increase in the water absorption ability of the hydrophobic IL.Experiments suggest that there is a break in the Li + -anion aggregates, which was confirmed by molecular dynamics (MD) simulations.In addition, water causes important changes in properties as density, viscosity and ionic conductivity; moreover, the experimental results suggest a break in the Walden's rule at high temperatures, due to aggregates modification.Lastly, it was evaluated the local structure of the IL 1-Butyl-2,3-dimethylimidazolium tetracyanoborate ([BMMI][B(CN)4]), to understand how a weak coordinating anion and the Li + interact.It was showed by MD simulations that this property results in a bigger distance between anion and Li + than in the case of [Tf2N], indicating a lower interaction between both.The use of ILs as electrolytes for batteries is a promising alternative, however it is needed more studies to find the best system.