PurposeThe residential sector is a principal contributor to global energy consumption, underscoring the critical importance of promoting green housing initiatives to mitigate energy use and environmental degradation. The prevalence of uncertainty in the natural environment, exemplified by phenomena like extreme weather events, highlights the urgent need for adaptive strategies and sustainable practices to mitigate the impact on human communities and ecosystems. Against this backdrop, this paper presents a theoretical framework examining the influence of natural environmental uncertainty on consumers' willingness to purchase green housing.Design/methodology/approachThrough three experiments, this study modeled the mechanism by which the natural environment uncertainty affects consumers' willingness to purchase green housing, and then verified the mediating effect of the threat of ontological security and the moderating effect of the degree of consumers' natural connectedness.FindingsThis paper concludes (1) natural environmental uncertainty exerts a significant positive impact on the willingness to purchase green housing, with the threat to ontological security serving as a pivotal mediating variable; (2) the degree of natural connectedness significantly moderates the effect of ontological security threats on the purchasing intent for green housing.Originality/valueThis research contributes to the marketing literature by offering a novel perspective on the impact of natural environmental uncertainty on consumer behavior, augmenting the body of knowledge concerning the determinants of green housing purchase intentions, and provides new ideas for marketers.