Vector control algorithm was first used to solve the torque control problem of AC motor. At present, vector control strategy has been used in AC asynchronous motor more mature. In addition, permanent magnet synchronous motor (PMSM) has been more and more widely used in national defense, industrial and agricultural production, and daily life due to its own advantages. Therefore, this paper studies the application of vector control algorithm in permanent magnet synchronous motor (PMSM). In this paper, the working principle of permanent magnet synchronous motor (PMSM) is discussed, and the mode of PMSM is constructed. Then, the control principle of vector control algorithm is discussed, and its control model is constructed. In addition, a complete program is built by Simulink, and the simulation is carried out.