The rms roughness of the thin films increases with the doping which may be the result of the accumulation of the MgO particles on the surface of ZnO nano-grains. The similar results of surface morphologies of Mg-doped ZnO thin films are presented by Kumar et al. [19].