This study examines sustainability as a strategic resource for creating competitive advantage among Micro, Small, and Medium Enterprises (MSMEs), considering the mediating roles of managerial capabilities and environmental planning and the moderating roles of public policy and stakeholder pressure. A sequential exploratory mixed-methods design was employed, comprising qualitative and quantitative phases conducted among MSMEs in Yogyakarta and Lampung, Indonesia. The qualitative phase involved 25 MSME owners or managers selected through purposive sampling, with data collected through semi-structured interviews, limited observations, and documentation, and analyzed using thematic analysis. The quantitative phase involved 215 respondents selected through a survey, with data analyzed using Partial Least Squares Structural Equation Modeling (PLS-SEM) through SmartPLS. The results reveal that sustainability has positive and significant effects on managerial capabilities, environmental planning, and competitive advantage. Environmental planning significantly mediates the relationship between sustainability and competitive advantage, whereas managerial capabilities do not exhibit a significant mediating effect. Qualitative findings further indicate that sustainability has the potential to constitute a strategic resource characterized by valuable, rare, inimitable, and non-substitutable (VRIN) attributes. Overall, sustainability contributes to long-term competitive advantage through resource efficiency, waste reduction, reputation, consumer trust, differentiation, adaptive capacity, and business continuity.