These are difficult times! Almost every industry is facing a real risk of disruption from cutting-edge technologies in the digital world. This reality drives companies to change and adapt their business models to remain competitive. They must succeed in transforming their business through technology, or they'll face destruction at the hands of their rivals that do. Furthermore, the search for sustainability continues to be one of the main matters that companies are investing in. This paper is an attempt to discuss how to seize the opportunity of digital transformations in order to reach sustainability. It starts by defining the concepts of digital transformation and sustainability. After, it answers, through real world examples, how companies, during a digital transformation, could increase profitability and their social footprint while reducing their impacts on environment. The paper discuss after, a survey, in the Moroccan context, of the relationship between digital transformation and sustainability among 15 companies (from 40 companies contacted) from different sectors. It also explains the Moroccan actual context using a game theory approach.