In this paper, a new iterative method was applied to the Zakharov-Kuznetsov system to obtain the approximate solution and the results were close to the exact solution, A new technique has been proposed to reach the lowest possible error, and the closest accurate solution to the numerical method is to link the numerical method with the pso algorithm which is denoted by the symbol (NIM-PSO). The results of the proposed Technique showed that they are highly efficient and very close to the exact solution, and they are also of excellent effectiveness for treating partial differential equation systems.