PurposeGrounded in social identity theory (SIT), this study aims to explore the relationships between job embeddedness (JE), environmental commitment (EC), job autonomy (JA) and pro-environmental behavior (PEB) in the hotel industry. It specifically investigates the mediating role of EC in the JE-PEB relationship and the moderating effect of JA on the JE-EC relationship.Design/methodology/approachEmploying a quantitative methods approach, this study evaluates the interrelationships among the variables using the SPSS macro-PROCESS Model 4 and 7.FindingsThe study uncovers a significant positive relationship between JE and PEB, mediated by EC. It also identifies JA as a moderator in the JE-EC relationship, which in turn influences PEB.Practical implicationsThese insights can guide organizations, especially in the hotel industry, on how job design and organizational culture can be optimized to promote PEB among employees. By enhancing JE and autonomy, organizations can foster greater EC, thereby catalyzing increased PEB.Originality/valueThis study uniquely integrates the constructs of JE, EC, JA and PEB under the lens of SIT, offering fresh perspectives into the dynamics of workplace behavior and its impact on the environment.