Purpose The hotel customers are conscious of the deteriorating environmental conditions and demand for online immersions. Hotels lack an exciting shift in customer behavior for augmented customer re-patronage intention (CRPI) especially in developing countries. This study aims to apply customer-dominant service logic (CDSL) to comprehend customers’ life-sphere contributing to some of the vital United Nations sustainable development goals (UN SDGs). In this essence, CDSL grasps the impact of customer empowerment (CE) and environmental corporate social responsibility (Env CSR) on customer re-patronage intention (C-RPI) with the mediating and moderating effects in Pakistan’s four- and five-star hotels. Design/methodology/approach A deductive approach is followed in which an online survey of 400 hotel customers was conducted using purposive and snowball sampling techniques to understand the practice of C-RPI and UN SDGs. Findings This study reveals that executing the UN SDGs in the hotel industry eventually boosts CE and Env CSR, further enhancing online customer value cocreation (O-CVCC) resulting in C-RPI. Both CE and Env CSR gain a complimentary/partial mediation by O-CVCC on C-RPI is also reported. Moreover, sensation seeking moderates the relationship between CE and O-CVCC. Yet, customer commitment does not moderate the relationship between O-CVCC and C-RPI. Originality/value This study highlights that C-RPI (i.e. SDG 11) enhances when Env CSR is taken care of (i.e. SDG 13), customers are empowered (i.e. SDG 5 and SDG 17) and cocreated online (i.e. SDG 9). To the best of the authors’ knowledge, this study is one of the first studies to empirically test the approaches in the hotel industry contributing to SDG 5, 9, 11, 13 and 17.