Monitoring and assessing ecological quality (EQ) can help to understand the status and dynamics of the local ecosystem. Moreover, land use and climate change increase uncertainty in the ecosystem. The Luanhe River Basin (LHRB) is critical to the ecological security of the Beijing–Tianjin–Hebei region. To support ecosystem protection in the LHRB, we evaluated the EQ from 2001 to 2020 based on the Remote Sensing Ecological Index (RSEI) with the Google Earth Engine (GEE). Then, we introduced the coefficient of variation, Theil–Sen analysis, and Mann–Kendall test to quantify the variation and trend of the EQ. The results showed that the EQ in LHRB was relatively good, with 61.08% of the basin rated as ‘good’ or ‘excellent’. The spatial distribution of EQ was low in the north and high in the middle, with strong improvement in the north and serious degradation in the south. The average EQ ranged from 0.58 to 0.64, showing a significant increasing trend. Furthermore, we found that the expansion of construction land has caused degradation of the EQ, whereas climate change likely improved the EQ in the upper and middle reaches of the LHRB. The results could help in understanding the state and trend of the eco-environment in the LHRB and support decision-making in land-use management and climate change.