NiO films were prepared by chemical bath deposition and electrodeposition method, respectively, using nickel foam as the substrate. The films were characterized by scanning electron microscopy (SEM) and the images showed that their morphologies were distinct. The NiO film prepared by chemical bath deposition was highly porous, while the film prepared by electrodeposition was dense, and both of their thickness was about 1μm. As anode materials for lithium ion batteries, the porous NiO film prepared by chemical bath deposition exhibited higher coulombic efficiency and weaker polarization and its specific capacity after 50 cycles was 490mAhg−1 at the discharge–charge current density of 0.5Ag−1, and 350mAhg−1 at 1.5Ag−1, higher than the electrodeposited film (230mAhg−1 at 0.5Ag−1, and 170mAhg−1 at 1.5Ag−1). The better electrochemical performances of the film prepared by chemical bath deposition are attributed to its highly porous morphology, which shorted diffusion length of lithium ions, and relaxed the volume change caused by the reaction between NiO and Li+.