Due to the increasingly serious problems of China's human habitat ecosystem, on the basis of PESTEL paradigm, this study develops a human habitat ecological environment evaluation system with 6 criteria levels and 33 indicator layers, with Anhui Province as a representative. It also combines entropy weight method-TOPSIS, grey correlation analysis method and ArcGIS to assess the quality and spatial-temporal distribution features of the habitat ecological environment in the province of Anhui from 2012 to 2021. The results are presented below (1) Analysed from a temporal perspective, in Anhui Province, the overall quality of human habitat ecological environment improved significantly between 2012 and 2021, and the comprehensive index increased by 178.95%. (2) From the spatial dimension, Huangshan City and Maanshan City in the south of Anhui Province have the highest level of habitat ecological environment, while Huaibei City and Bozhou City perform the worst. (3) In terms of different indicators, the indicator with the strongest interlink with the humankind habitat ecosystem is the completed investment in the project of treating wastewater (PO5), and the indicator with the weakest correlation is the Total amount of wastewater discharged (TE1). The variations in time and space in the evolution and development of the quality of the humankind habitat in the province of Anhui are obvious, and differentiated and targeted measures to improve the human habitat ecological environment should be implemented to effectively promote the excellent creation of Anhui Province.