Abstract:[Aim] The Minshan Mountains and Qionglai Mountains are important habitats for Ailuropoda melanoleuca but due to regional interference, habitat fragmentation and many other reasons, there still are risks to the survival and population rejuvenation of A. melanoleuca. It is of great practical significance to evaluate the ecological security of A. melanoleuca habitat based on its habits and survival needs, which is beneficial to provide better protection of A. melanoleuca population and clarify the geographical focus of protection.[Method] Taking the cities, districts and counties located at the range of Minshan Mountains and Qionglai Mountains we selecteded 12 representative factors from the most recent social, geographic and biological categories as evaluation indicators, so as to carry out comprehensive evaluation on ecological security of A. melanoleuca habitat in this area by combining the methods of analytical hierarchy process (AHP) and principal component analysis (PCA).[Result] Pingwu County and Baoxing County in the middle of Minshan Mountains and Qionglai Mountains have the highest valus of the ecological security indicators. The ecological security indicators of the areas surrounding Chengdu, such as Pengzhou City, Dujiangyan City and Qionglai County, are low, mainly caused by the influence of human activities. The northern part of Dujiangyan City and Wenchuan County are important habitats for A. melanoleuca, but their ecological security indicators are relatively low, which indicates that these areas need further protection, management and restoration. The ecological security indicators of central Pingwu, Songpan and Maoxian were relatively high, which can be protected as potential habitats for A. melanoleuca.[Conclusion] The ecological security indicators of A. melanoleuca habitat in Minshan Mountains were higher than that of Qionglai Mountains, but there was obvious spatial heterogeneity in both regions. The results of this research can provide a scientific basis for the construction of ecological corridor for wild A. melanoleuca and the selection of release place locations for captive A. melanoleuca.