With the development of sustainable theory, environmental and resource issues have become one of the major challenges facing human society. As an important part of social economy, enterprises are also an important source of carbon emissions and environmental pollution. With the growth of the digital economy, digital technology has played an important role in improving economic efficiency. Digital transformation can not only enable enterprises to obtain and allocate resources more efficiently and reasonably, but can also provide a powerful driving force for the healthy development of the environment. This can improve the positive role and impact of enterprises on environmental development. Based on the overview of social carbon neutrality and green sustainable development goals, this paper made an in-depth study of digital transformation to help carbon neutrality and green sustainable development. In order to verify its effect, this paper took a medium-sized enterprise as the object, analyzed the growth of its economic and environmental benefits in the process of digital transformation, and compared it with the traditional development strategy. The empirical results showed that in the perspective of the Metaverse, the highest growth rate of environmental benefits of the enterprise would reach 19.6% every month in 2021. From this data, digital transformation based on the perspective of the Metaverse was more able to help carbon neutrality and green sustainable development.