The problem of the finite time tracking controller design is considered for a class of permanent-magnet synchronous motor. During the control process, the first phase is to induce the system state into a prescribed state (or region) under the current control law by using the relay switching control; the second phase is to switch to a terminal sliding mode control such that system state reaches the equilibrium point in a finite time. The boundedness of all signals of closed-loop system and the global stability of equilibrium point are guaranteed and the system states accurately track the states of the reference signal in a finite time. Finally, numerical simulation validates the efficiency of the control scheme.