This article proposed an improved algorithm for the parameter identification of permanent magnet synchronous motors (PMSMs).An enhanced raccoon optimization algorithm (EROA) was formed by combining the raccoon optimization algorithm (ROA) with the adaptive exploration radius strategy, raccoon-washing-food-inspired strategy, and escaping-predator strategy.First, using some of the functions in IEEE CEC2015, the EROA solution has a large improvement in convergence speed and solution accuracy compared with other algorithms.Second, the EROA solution is more stable under the same conditions as demonstrated by MATLAB parameter identification simulation.Finally, EROA applies to motor parameter identification through motor control experiments.