Abstract With the rapid development of the national economy, transportation of hazardous chemicals has aroused widespread concern of different fields including government, industry and academia, due to its huge demand, high frequency of accident and huge losses. The study on optimal route selection is a quite important issue for the safety of hazardous chemicals transportation. In this paper, we firstly analyzed the comprehensive factors influential in road security, such as environment, population density, emergency response time and so on. Start from the index system consists of “comprehensive factors influential in road security”, “safety management level of enterprises” and “transport of hazardous materials”, we defined the risk levels of goods. Meanwhile the weights of influence factor were also obtained by using analytic hierarchy process methods. Then the weighted route length were calculated by normalizing the parameters of each secondary effects. Ultimately, we successfully found out the optimal route by using Dijkstra's algorithm. This work provided a theory basis for the effective and practical use of routing model.