Ni-CeO2 nanocomposite coatings were prepared by electrodeposition with rotating cathode in an ultrasonic field. The surface morphology of the coatings was examined. Effects of different electrodeposition methods, ultrasonic power and cathode rotating speed on the corrosion rate of Ni-CeO2 nanocomposite coatings were analyzed. The results show that the corrosion rate of the coatings decreases considerably with the increasing of ultrasonic power, and suitable cathode rotating speed could decrease the corrosion rate of coatings. During the process of electrodeposition, the CeO2 nanoparticles, ultrasonic and rotating cathode influence on the surface morphology of the coatings. The nanocomposite coating obtained by rotating cathode in an ultrasonic field exhibits refined crystal grains and presents an excellent corrosion resistance.