Frequent mining activities can bring about problems such as soil erosion and environmental pollution, which are detrimental to the efficient use of land and the sustainable development of cities. Existing studies have paid little attention to mining areas and lack comparative analysis of landscape changes in multiple mining pits. In this paper, the main urban area of Anshan City, where the mining areas are concentrated, was used as the research area, and the Landsat TM/OLI surface reflectance (SR) data of the Google Earth Engine (GEE) platform and the random forest algorithm were used to map the land use in 2008, 2014, and 2020. On this basis, land use dynamics and landscape pattern indices were used to analyze the changes in land use and landscape patterns in the Anshan City area. In addition, a moving window method was combined to further analyze and compare the landscape changes between different pits. The results show that:1. From 2008 to 2020, the construction land in Anshan urban area continued to decline, the forest land continued to expand, and the construction land was shifted to the forest land and cultivated land. Mining land increased before 2014 and remained almost unchanged after 2014, which is in line with the actual situation. 2. During the study period, the landscape fragmentation degree and landscape heterogeneity in the urban area of Anshan kept increasing. The high value areas of landscape fragmentation were the urban-rural combination areas and the mining areas. Among them, the reclamation of Dagushan and Donganshan is better, while the reclamation of Anqian, Yanqianshan and Xiaolingzi mines needs to be strengthened. 3. The random forest algorithm based on GEE shows a high degree of accuracy for land use classification. The overall classification accuracy in 3 years exceeds 90% and the kappa coefficient exceeds 0.85. The study results can be used as an essential reference for optimizing the urban ecological environment and provide technical backing for the urbanization construction and rational use of land in Anshan City.