The current ant colony algorithm has higher congestion and evacuation risk for the evacuation path of the personnel in hatchway. Therefore, an optimization algorithm based on particle swarm for evacuation path of the personnel in hatchway is proposed. In the algorithm, the shortest evacuation time is taken as the goal, and the corresponding emergency evacuation model is established. Then, the particle swarm optimization algorithm is used to solve the model. In the process, the velocity and position of the particle are calculated, and the optimal velocity and position are obtained by iteration. Finally, based on fitness function, an evacuation model for the personnel in hatchway is established. The experimental results show that the proposed algorithm reduces the evacuation congestion and the utilization ratio of the channel is about 30% higher than the minimum record, indicating the certain feasibility.