Lanzhou City is located in the semi-arid region of northwest China, which experiences serious desertification. Moreover, the high intensity of land development, with the accelerated industrialization and urbanization, causes increasingly aggravated conflict between humans and the environment. Exploring the response of the ecological environment quality to the natural environment and anthropogenic activities is important to protect the sustainable development of urban economic construction and the environment. Based on the Google Earth Engine (GEE) platform, this paper constructed a modified Remote Sensing Ecological Index (MRSEI) model which could reflect the ecological environment quality by integrating the desertification index (DI) into the Remote Sensing Ecological index (RSEI) model. This paper explores the spatiotemporal variation in the environmental quality from 2000 to 2020 in Lanzhou, China, and analyzes the natural and anthropogenic factors affecting the environment quality in terms of temperature, precipitation, gross domestic product (GDP), land use, night lighting, and population. The results showed that the mean value of MRSEI ranged from 0.254 to 0.400. The area undergoing fast growth in ecological quality was in the northwestern part of Lanzhou, and the area of decrease was in the central part. Various factors have different degrees of influence on the ecosystem, with temperature, precipitation, and land use having a greater impact, and GDP and population having a limited impact. Precipitation and temperature showed a strong impact when interacting with other factors, demonstrating that precipitation and temperature were also key factors affecting MRSEI. Overall, climate change and the implementation of ecological restoration projects have led to an improvement in the quality of the ecological environment in Lanzhou. This study provides a reference for understanding the spatiotemporal changes in the ecological environment in semi-arid Lanzhou and is conducive to formulating proper protection strategies.