Fig. 1 shows XRD patterns of Mg-doped ZnO thin films prepared on Si substrate with different Mg concentrations annealed at 873 K for 60 min. The XRD patterns indicate that the ZnO, ZnO:Mg-2%, ZnO:Mg-4% thin films possess a polycrystalline ZnO with the hexagonal wurtzite structure.