PurposeThe COVID-19 pandemic is still raging, which calls for an exploration of how to prevent and control pandemics to promote sustainable development. The purpose of this paper is to examine the role of the digital economy in sustainable development, the relationship between the two, the impacts of the outbreak on economic and social development, and changes in China's digital economy.Design/methodology/approachThe study used the time-series data from 2002 to 2019 and an unconstrained VAR model to examine the relationship between the digital economy and sustainable development before the pandemic.FindingsChina's digital economy has promoted the country's sustainable economic and social development; it has advanced rapid economic growth, improved people's living standards, increased efficient utilization of resources, and strengthened environmental protection.Research limitations/implicationsAmid the pandemic, China's digital economy developed effectively; it showed strong resilience because of its unique advantages. The digital economy in China has helped the country to control the pandemic in a short period, reduced the risk of supply chain disruption, promoted China's economic growth, and ensured the orderly operation of society. Therefore, countries worldwide are encouraged to prioritize their digital economies.Originality/valueCompared with the extant literature, this study explores the sustainable supply chain in a broader sense in the context of a pandemic, and how the supply chain is influenced by the digital economy. It not only includes the stability, resilience, and viability of the supply chain in economic development but also involves aspects of people's life, resource utilization, and environmental protection.