Designing highly efficient and cost-effective nanocatalysts for water electrolysis by the hydrogen evolution reaction (HER) and oxygen evolution reaction (OER) has been considered as a promising route to develop sustainable hydrogen production. In our study, nickel, cobalt, and iron oxides and their double hydroxides/sulfide have been extensively investigated as nanocatalysts for water splitting. We show that the surface energies of lattice planes during synthesizing NiO nanostructures can be altered and an enhanced crystal growth in different crystalline direction can be controlled by a hydrothermal method with variation of the pH conditions of the precursor solution. Based on the different pH, the morphology of NiO nanostructure can also be varied according to the different surface charge, which results in different catalytic performance. Moreover, by Fe doping, NiO could be tuned into higher OER performance by changing the local electronic structure as well as making the nanocatalyst bi-functional with respect to the OER and the HER processes under alkaline conditions. The 3D Fe-NiO nanocatalyst is fabricated by the facile chemical bath deposition (CBD) method on nickel foam templates. In order to identify the composition of the active phase on the surface of Fe-NiO/Ni foam, in situ Raman spectroscopic measurements are carried out for both the OER and HER reactions under alkaline conditions. The results show that the Fe doping plays a critical role for the catalytic property. Density functional theory (DFT) calculations show that Fe change the local electron density, shifting the energetically preferable absorption site of H from oxygen in NiO onto Ni in Fe-NiO in the hydrogen evolution reaction. In addition, the effects of the heteroatoms (S or Se) in the same group as oxygen are investigated as new, efficient nanocatalysts.