In recent years, among the most promising materials, there are some dilute ferromagnetic oxides that are semiconductors with wide band gap and have a Curie temperature higher than room temperature. Recently, Zinc Oxide is regarded because of the cheap price, abundant, wide band gap of 3/3 eV, exciton binding energy of 60 meV and access to single crystal bulk samples with high-quality and large size. So, it is one of the best choices for use in the optoelectronics industry. To understand these properties, both of n-type and p-type of ZnO is needed. On the other hand, the lack of p-type doping of ZnO prevented the widespread use of ZnO in certain optoelectronic devices. Also, ZnO is able to break down pollutants in industrial wastewater because of its photocatalytic properties. In the current study, silver is a good candidate for producing p-type doping and improving the photocatalytic activity in ZnO. In this project, pure and silver doped ZnO nanoparticles were synthesized by thermal treatment of ball milled precursors method to achieve p-type doping of ZnO wurtzite structure. To evaluate the photocatalytic efficiency of nanoparticles, the degradation test of methyl violet was used. Our study show formation of the wurtzite hexagonal structures, reduce in energy gap and produce the p-type doping in the samples. Also, the nanoparticles have ferromagnetic properties and show the appropriate response to the degradation test of methyl violet.