In this article, we present a model of entrepreneurial intention of engineers based on their satisfaction at work and the nature of their work environment. The research was carried out using a sample of 517 Moroccan engineers through moderated mediation analysis. Results show that an unfavorable environment has a negative effect on satisfaction at work and that this effect is felt more by the engineers who are driven by a strong sense of self-determination. Results also reveal that the effect of the work environment on entrepreneurial intention, through job satisfaction, also depends on perceived feasibility. Theoretical and managerial implications of this research are discussed.