The pro-environmental behavior of tourists is an important guarantee for the sustainable development of ecotourism scenic spots. This article is based on 806 tourist survey data from two ecotourism scenic spots, making use of exploratory factor analysis (EFA) and the structural equation model (SEM) to explore the impact of tourist experience quality on tourists’ pro-environmental behavior. The research findings indicate that (1) the quality of the tourist experience is an important factor affecting the formation of place attachment; (2) the quality of tourism experience directly and positively affects place dependence, and indirectly affects place identity through the mediating factor of place dependence; and (3) the direct impact of tourist experience quality on tourists’ pro-environmental behavior is significant, with place attachment playing a mediating role. This article provides inspiration for scenic spots to encourage tourists to engage in pro-environmental behavior. In the process of stimulating tourists to engage in pro-environmental behaviors, ecotourism scenic spots should pay more attention to the tourist experiences and emotional experiences. Scenic spots should make more efforts to improve the quality of the tourist experience, so that tourists can develop a sense of dependence on ecotourism scenic spots, gradually form self-identification with the scenic spots, and engage in environmentally friendly behavior, helping to achieve the sustainable development of ecotourism scenic spots.