Introduction

Since the industrial revolution, carbon emissions generated by the massive consumption of fossil fuels have worsened the global climate and have had acute impacts on the environment and the climate system. As the largest developing country, China’s economy has witnessed unprecedented growth over the past 44 years. However, urbanization and economic growth are highly dependent on industry, triggering a surge in fossil energy and carbon emissions (Rehman et al., 2021). In 2020, PM2.5 and PM10 in 168 key cities in China exceeded the CAAQS Grade II standard, reaching 61.9% and 38.7%, respectively (Hao et al. 2021; Zhu et al. 2022). According to data from Yale University, China’s EPI score is 37.3, ranking 120 in 180 countries and regions, with an increase of 8.4% over a decade period, and ranking 137 in air quality, with an increase of 6.7% over a decade period. At present, China’s economic development is at the critical stage of transformation and upgrading. In response to the deterioration of the ecological environment, China has gradually paid attention to the exploration and use of clean energy (Isoaho et al. 2017). Moreover, the Chinese government has actively formulated and implemented a series of pollution control strategies, regulatory policies and actions to address climate change, which have provided a strong impetus for the global achievement of the Paris Agreement and made significant contributions in this regard (Wu et al. 2021). Therefore, the pollution problem has become the greatest obstacle in the process of realizing carbon neutrality and green transformation in China (Chen and Chang 2020). If China achieves its carbon peak and carbon–neutral goals, it would mean a comprehensive transition of the economy and society to a green and low-carbon economy.

Financial innovation is the booster of economic growth, and it is the guarantee of green environmental development (Awan et al. 2021). As an important part of the digital economy, digital finance realizes financing, payment, investment and so forth through digital technology, which enhances the inclusiveness and convenience of financial services and improves technological innovation (Cao et al. 2021). With the integration of the digital economy and traditional finance, China’s digital financial index rose from 33.6 in 2011 to 334.8 in 2020, and digital financial inclusion has achieved vigorous development. Based on current studies, scholars have confirmed the role of digital finance in promoting economic growth and industrial upgrading. Research suggests that the financial system can optimize resource allocation and promote technological progress, and it has become an important driver of total factor productivity growth and economic growth (Han and Shen 2015; Lee and Lee 2022). As the public’s environmental concern gradually increase, the issue of whether digital finance promotes the green transformation of the economy has attracted attention from scholars. Ouyang and Li (2018) constructed a financial development index using indicators such as credit, insurance industry income and stock market value. The study found that financial development can significantly reduce regional energy consumption and carbon emissions. In the era of digital economy, the combination of artificial intelligence digital technology and the financial industry has had a subversive impact on the traditional financial operation (Li et al. 2020). Compared with traditional finance, digital finance reduces the risk resulting from information asymmetry in the transaction process by evaluating the collected user information through advanced technologies (Demertzis et al. 2018). Moreover, taking advantage of the intelligent internet platform and big data analysis, digital finance can accurately identify environmental protection industries and promote the flow of capital to green, low-carbon and high-tech industries. Technological innovation is not only a source of power for sustained economic growth but also an effective means to solve environmental and sustainable development problems (Chang et al. 2022). As an emerging financial model, digital finance expands the boundaries and efficiency of financial services and brings new opportunities to stimulate the vitality of technological innovation and carry out green technological innovation activities. However, some scholars have concluded that although financial development drives technological progress in society, it leads to an increase in energy consumption and carbon emissions through a rebound effect (Sorrell et al. 2009). Few scholars have discussed the influences of green finance on environmental pollution from spatial spillover and threshold effects. Our research mainly addresses the following questions. What is the impact and transmission mechanism of digital finance on environmental pollution when spatial correlation is considered? In the long run, does digital finance have a nonlinear effect on pollutant emissions? The research conclusions of this paper are of great significance for the government to innovate financial models and achieve ecological governance and carbon neutrality.

The contributions of our study are mentioned in the following aspects. First, digital finance and environmental pollution are contained in the same analytical framework. It helps to enrich and expand the breadth and depth of research in the field of environmental governance. Second, the spatial Durbin model is used to test the spatial spillover effects between finance and pollution. Simultaneously, the mediation effect is applied to discuss the impact mechanism of digital finance on environmental pollution. These models not only address the spatial spillover effects between variables but also examine the channels of influence of digital finance on environmental pollution. Third, to solve the endogeneity problem, the dynamic threshold model is introduced to test the effect of digital finance on environmental pollution from the perspectives of government support and marketization processes. This article evaluates the environmental effects of digital finance from multiple perspectives. It not only enriches the related theoretical research on digital finance and high-quality economic development but also provides practical and effective practical paths for China’s ecological environment governance and economic green transformation.

Literature review

Finance and environmental pollution

The existing research has explored the interaction between finance and environmental pollution from different perspectives and methods. In general, there are three different viewpoints: facilitation, inhibition and irrelevance. Some scholars argued that financial development can effectively allocate capital resources, improve the utilization efficiency of funds and promote capital flow to low-polluting industries (Moosa and Ramiah 2018). Financial growth helps improve the level of technological innovation and productivity, enhance the efficiency of energy use and thus improve environmental quality (Chang 2015; Zakaria and Bibi 2019). For instance, Al-Mulali et al. (2015) studied the relationship between financial development and carbon dioxide emissions in 129 countries through OLS and the Granger causality test. The results show that financial development greatly contributes to reducing carbon emissions and improving environmental quality. Shahbaz et al. (2018) explored the influencing factors of carbon emissions in France from 1955 to 2016 and found that financial activities reduced pollution emissions in France.

However, some scholars hold the opposite view and suggest that in the process of financial reform, once low-interest bank credit flows to traditional polluting industries (steel, petrochemical), it will also increase the output of energy-intensive products and deteriorate the ecological environment (Dong et al. 2020; Acheampong 2019). Shahbaz et al. (2020b) discussed the relationship between financial development and environmental degradation in the United Arab Emirates, 1975QI–2014QIV, and found that there is a U-shaped and inverted N-shaped relationship between financial reform and carbon emissions. Adams and Klobodu (2018) found that financial infrastructure plays an essential role in pollution based on a study of 26 African countries. Additionally, financial development can effectively stimulate residents to increase their consumption of cars and washing machines, which indirectly increases energy consumption and aggravates pollution. In addition, some scholars believe that financial development has no impact on environmental quality. Omri et al. (2015) analysed the relationship between the financial environment and trade growth of 12 MENA countries and found that financial development exerts no impact on CO2 emissions. Dogan and Turkekul (2016) also found that financial development does not affect environmental pollution by testing the EKC curve in the USA.

Development of digital finance

With the application of digital technology, related research on digital finance has attracted the attention of scholars (Ozili 2018; Butticè and Vismara 2021; Lu et al. 2022). At present, the research on digital finance mainly includes measurement indicators, digital financial tools and its effects on the economy, society and environment. Specifically, there are four representative indicators for digital finance, including financial inclusion data founded by the Alliance for Financial Inclusion, Global Findex database, G20 Financial Inclusion Indicators and the Peking University Digital Financial Inclusion Index of China and Ant Financial Services Group. These financial databases are quite convenient for the study of digital finance (Demirgüç-Kunt and Klapper 2012).

In addition, digital finance has brought many changes to economic and social development (Siddik et al. 2020). Digital finance provides new and important financial products, services and software for economic development and changes the way the public communicate and interact (Gomber et al. 2017). Relying on big data, digital finance has overcome the limitations of traditional finance, such as information asymmetry, high transaction costs and limited mortgage loans, and has built a safer digital risk control system of inclusive finance (Ozili 2018). Compared with traditional finance, digital finance not only improves the efficiency of financial services and promotes the reform of financial structure but also enhances the market competition effect among banks and improves the service quality, diversification and convenience of banks (Durai and Stella 2019). By increasing online financial services, digital finance helps traditional finance reduce its dependence on physical channels and expand financing channels for SMEs and individuals (Ketterer 2017). Moreover, digital finance is essential in enterprise development, consumption, industrial structure upgrading, regional innovation and the income gap. Cao et al. (2021) found that digital finance can improve China’s energy-environmental performance through green technology innovation. Chen and Zhang (2021) believed that digital finance is conducive to the servitization of manufacturing. Li et al. (2020) found that digital finance can stimulate household consumption through online shopping and payments. Interestingly, due to the frequent use of digital finance, the Kenyan public has become a trusted member of the financial community (Kusimba 2018). Some energy start-ups provide modern energy to the poor through pay-as-you-go, and customers can use energy assets more conveniently through prepayment or lease (Winiecki and Kumar 2014).

In summary, scholars have done abundant research on the impact of financial development on economic development, industrial upgrading, bank credit risk, household consumption and productivity. However, in the context of carbon neutrality and sustainable development, the discussion on the role of digital finance on environmental quality is still insufficient. Moreover, it has not yet reached a consensus on the impact of finance on pollution emissions. The related research has the following shortcomings. First, the existing literature discusses more about the direct effect of digital finance on environmental quality and pays little attention to the spatial spillover effect. Second, most of the literature only analyses the impact of digital finance on pollution from an empirical perspective, and there are relatively few studies that discuss the impact mechanism between the two in detail. Therefore, the digital finance and pollution are included in the same empirical model to broaden the scope of research on environmental governance. The SDM model and the mediation effect model are applied to test the spatial spillover effects and influence path of digital finance on pollution. It can provide practical and effective practical paths for ecological governance and green transformation.

Mechanism analysis

The impact mechanism of digital finance on environmental pollution

With the support of cloud computing and artificial intelligence, digital finance, as a new financial model integrating traditional finance and internet technology, accelerates the integration of market financial resources and realizes financial informatization and intelligence (Gomber et al. 2017). The impact of digital finance on environmental pollution can be analysed from the perspective of supply and demand. Digital finance accelerates the flow of funds and stimulates the vitality of the market through more adequate information from the perspective of supply. It also provides multiple financing channels for enterprises, eases financing constraints and guides enterprises to transform into a low-carbon and green development model (Chang et al. 2021). On the other hand, digital finance provides consumers with consumer credit based on massive consumption data, reduces the difficulty for residents to obtain financial services and releases consumption potential from the perspective of demand (Li et al. 2020). Moreover, it reshapes a convenient and intelligent financial system, which not only improves the accessibility of information but also expands financing channels for enterprise innovation and improves the efficiency of financial resource allocation and the quality of economic development (Ozili 2018).

Technological innovation effect

Generally, green innovation activities have the characteristics of a long cycle, large capital investment and uncertain output results. The transformation of innovation achievements, market promotion and application and after-sales service all require continuous financial support (Wang and Luo 2020). Digital finance mainly improves enterprises’ green innovation from two aspects. First, relying on digital technologies, digital finance can help enterprises evaluate innovation through internet technology and promote the transformation of enterprise innovation from experience-driven to data-driven. In addition, digital finance also improves the success rate of technology research and the transformation of technological achievements. Second, unlike traditional finance, which selects credit customers according to the company’s assets and profitability, digital finance provides financial innovation and technical research support for small firms in remote areas based on the characteristics of inclusive and precise services (Shofawati 2019). By collecting enterprises’ nonfinancial information, digital finance establishes a more complete credit rating, eases financing constraints and increases SMEs’ engagement in innovative activities. In addition, green innovation can improve the energy efficiency and the transformation of polluting industries and reduce environmental pollution (Cao et al. 2021).

Industrial upgrading effect

Digital finance can affect industrial upgrading and environmental pollution mainly through the following channels. The first influence channel is the development of the tertiary industry. As a part of the service industry, digital finance has the characteristics of resource savings and environmental friendliness, which can generate new industry models and new business forms and promote the transformation of industrial structures through the market-oriented application of information technology and business model innovation. Digital finance can make full use of internet technology to build a supply and demand docking platform for financial resources, reduce transaction costs and improve transaction efficiency. It realizes the integration of the digital economy and the real economy and promotes industrial transformation (Feng and Zhang 2021). Additionally, digital finance mitigates factor mismatches and reduces factor substitution costs. Digital finance relies on the internet and intelligent business models to break the constraints of time and space and guide the transfer of factors to high-efficiency industries. Therefore, digital finance can promote industrial upgrading and optimize environmental quality by increasing the proportion of green industries (Wan et al. 2022).

Industrial rationalization effect

As the core of the modern economic system, digital finance enhances the rational utilization of funds by dispersing risks and providing liquidity, optimizes the rational allocation of resources and guides resources to agglomerate in green industries (Chen and Zhang 2021). On the one hand, digital finance relies on digital technology to make the information in the financial service process more sufficient and weaken the problems of information asymmetry, moral hazard and adverse selection. In addition, it can also improve information transparency, reduce trust risks and transaction costs and improve the allocation efficiency of capital elements. On the other hand, digital finance can enhance the rationalization of industrial structure by optimizing labour resource allocation. Specifically, digital finance can encourage entrepreneurship through financial support, create new jobs, provide human capital investment and adequate credit for vulnerable groups and reduce the negative impact of labour dislocation on resource allocation (Durai and Stella 2019). Furthermore, the rationalization of the industrial structure can improve the utilization efficiency of various resource elements and reduce energy consumption and environmental pollution. The impact mechanism of digital finance and environmental pollution is shown in Fig. 1

Fig. 1
figure 1

Influence mechanism of the digital finance and environmental pollution

Methodology and data

Methodology

Basic linear model

To check the effect of digital finance on pollution, a benchmark linear measurement model was constructed. Considering that environmental pollution may be affected during the earlier stage (Ren et al. 2021), we add the lagging one-stage variable \({POL}_{it-1}\) to the model. The equation is as follows:

$${POL}_{it}={\beta }_{0}+{{\beta }_{1}{POL}_{it-1}+\beta }_{2}{DF}_{it}+{\beta }_{3}{PGDP}_{it}+{\beta }_{4}{POD}_{it}+{\beta }_{5}{FIN}_{it}+{\beta }_{6}{OPEN}_{it}+{\mu }_{i}+{v}_{t}+{\varepsilon }_{it}$$
(1)

where DF indicates digital finance; X contains all the control variables, involving economic development (\({PGDP}_{it}\)), population agglomeration (\({POD}_{it}\)), financial development (\({FIN}_{it}\)) and opening level (\({OPEN}_{it}\));\({\beta }_{0}{, \beta }_{1}, {\beta }_{2},\dots ,{\beta }_{n}\) are the coefficients; and \({\mu }_{i}\) and \({\nu }_{t}\) denote the province effects and time effects, respectively. \({\varepsilon }_{it}\) is the error term.

Spatial Durbin model

There are three types of spatial economic models: the lag model (SLM), error model (SEM) and Durbin model (SDM). SLM models focus on the spatial characteristics of the explained variables, and the SEM model mainly examines the spatial influence of unobservable random shocks. The SDM model covers the advantages of SEM and SLM and is frequently adopted in empirical research (Yang et al. 2021a, 2021b). In addition, the SDM model can calculate the spillover effect between regions, which more accurately reflects the spatial correlation. Therefore, to accurately analyse the spatial spillover effects of DF on environmental pollution, we set up the spatial measurement model as follows based on a multidimensional spatial weight matrix.

$${POL}_{it}=\alpha +\rho \sum\nolimits_{j=1}^{N}{W}_{ij}{POL}_{jt}+{\beta }_{1}{DF}_{it}+{\beta }_{2}{PGDP}_{it}+{\beta }_{3}{POD}_{it}+{\beta }_{4}{FIN}_{it}+{\beta }_{5}{OPEN}_{it}+{\beta }_{6}\sum\nolimits_{j=1}^{N}{W}_{ij}{DF}_{jt}+{\mu }_{i}+{v}_{t}+{\varepsilon }_{it}$$
(2)

where ρ is the spatial spillover coefficient and \({W}_{\mathrm{it}}\) is the spatial weight matrix. According to Hao et al. (2021), we utilize the 0–1 spatial weight matrix (\({W}_{ij}^{G}\)) to test the spatial spillover effect. Based on the above matrix, if province i has the same edge as province j, then \({W}_{ij}^{G}\)=1; otherwise, \({W}_{ij}^{G}\)=0. The formula of Moran’s I is as follows.

$${Moran's}\;I=\frac{{\sum }_{i=1}^{N}\sum_{j=1}^{N}{W}_{ij}({X}_{i}-\overline{X })({X}_{j}-\overline{X })}{{S}^{2}{\sum }_{i=1}^{N}\sum_{j=1}^{N}{W}_{ij}}$$
(3)
$${S}^{2}=\sum\nolimits_{i=1}^{n}{({X}_{i}-\overline{X })}^{2} \overline{X }=\frac{\sum_{i=1}^{n}{X}_{i}}{n}$$
(4)

Additionally, this paper uses z values for statistical tests.

$$z({Moran}'s\;I)=\frac{{Moran}'s\;I-E({Moran}'s\;I)}{\sqrt{Var({Moran}'s\;I)}}$$
(5)
$$E({Moran}'s\;I)=-\frac1{n-1}$$
(6)

Dynamic threshold panel model

To study the influence of digital finance on environmental contamination under different levels of threshold variables, we choose digital finance, government support and marketization level as threshold variables. Referring to Wu et al. (2021), we construct the threshold panel model:

$${POL}_{it}=\alpha +{\beta }_{1}{POL}_{it-1}+{\beta }_{2}{DF}_{it}\bullet I\left({q}_{it}\le c\right)+{\beta }_{3}{DF}_{it}\bullet I\left({q}_{it}>c\right)+\sum\nolimits_{k=1}^{4}{\delta }_{k}{X}_{kit}+{\mu }_{i}+{v}_{t}+{\varepsilon }_{it}$$
(7)

where \({q}_{it}\) is the threshold variable and c indicates the threshold value.

Selected variables

Environmental pollution

Because of the accessibility of data, this paper constructs an environmental pollution indicator system (see Table 1). Referring to Ren et al. (2022), we utilize the entropy method to determine the indicator weight for each indicator. Specifically, we standardize the specific indicators of different dimensions and units and then calculate the weight, entropy and difference coefficient. Finally, the annual comprehensive score of each province is obtained, that is, the environmental pollution index of each province.

Table 1 Environmental pollution index

Digital finance

The Digital Inclusive Finance Index, jointly compiled by the Institute of Digital Finance of Peking University and Ant Financial Services Group, is used to measure the overall development level of digital finance in China (Li et al. 2020). It measures the breadth of coverage, depth of use and degree of digitalization of digital finance, along with subindexes such as payment, insurance, monetary funds, credit services, investment and credit. The index covers 31 provinces, 337 cities at the prefecture level and above and approximately 2,800 counties in mainland China, which helps us better understand the development status and trend of digital inclusive finance in China (Fig. 2). In this paper, we divide the digital finance index by 100 to improve the accuracy and rationality of the analysis.

Fig. 2
figure 2

China’s digital finance in 2019

Mediation variables and threshold variables

(1) Technological innovation (TI)

Regarding the measurement of technological innovation output, R&D investment and patents are the main reference indicators used by many researchers to measure regional technological innovation capabilities. It is common to directly use patents as the result of innovative R&D in previous studies. The reason is that patent data are highly available, and the patent evaluation process is relatively objective. The patent data issued by the National Bureau of Statistics of China mainly include two types: the patents granted and patent applications. The quantity of patent applications is not enough to represent the actual innovation ability. The patents authorized by the patent certification body are granted protection rights such as xenophobia and monopoly (Pan et al. 2019). Authorized patents not only participate in transactions in the market but are also integrated into the industry and transformed into actual technical products. Therefore, the technical innovation indicator is measured by the number of patents granted (Khan et al. 2020).

(2) Industrial structure upgrading (STR)

Traditional economic growth mainly depends on high input and high waste of energy. With rapid economic growth, the industrial structure dominated by the industry has led to progressively severe environmental contamination. The upgrading of the industrial structure can optimize the environment and alleviate resource shortages. Therefore, the ratio of the added value of the tertiary industry to the added value of the secondary industry is used to express the effect of industrial upgrading (Ren et al. 2021).

(3) Industrial structure rationalization (RIS)

We use industrial structure rationalization to show the level of coordination among the different industries and the effective utilization of resources. It reflects the coupling degree of the factor input and output structure. The existing measurement indicators for industrial structure rationalization include the structural deviation degree and Theil index. However, the degree of structural deviation fails to reflect the role of the three industries in the economy and cannot effectively measure the rationalization of China’s industrial structure in the new era. Therefore, referring to Zhu et al. (2019), this paper uses the Theil index to represent industrial structure rationalization. The index effectively measures the employment structure of various industries and personnel. If the index is closer to 0, it means that the industrial structure is more reasonable, and the larger the index, the more unreasonable the industrial structure. The equation is as follows:

$${RIS}_{i,t}={\sum }_{m=1}^{3}{Y}_{i,m,t}\mathrm{ln}\left(\frac{{Y}_{i,m,t}}{{L}_{i,m,t}}\right), m=\mathrm{1,2},3$$
(8)

where \({Y}_{i,m,t}\) represents the added value of the mth industry in area i and \({L}_{i,m,t}\) represents the employees of the mth industry in area i.

(4) Marketization level (MAR)

This study uses the provincial marketization index compiled by Yang et al. (2020) as a substitute variable for the marketization process.

(5) Government support (GOV)

Government public fiscal expenditures can optimize capital allocation and promote economic efficiency and industrial structure adjustment. The ratio of government public expenditure to GDP is used to value the degree of government support.

Control variables

(1) Economic development (PGDP)

Numerous studies have found that economic growth inevitably results in a fall in environmental quality. Generally, economic development needs to consume a large amount of fossil energy, which inevitably leads to increased environmental pollution. The per capita GDP is selected to denote the degree of economic development in this paper (Yang et al. 2021c).

(2) Financial development (FIN)

On the one hand, funds and technology play a key role in environmental governance. On the other hand, corporate green technological innovation is inseparable from the support of financial services. This paper uses the loans of financial institutions at the end of the year as a percentage of GDP to measure the financial level (Wu et al. 2021).

(3) Population agglomeration (POD)

Population gatherings can increase resource consumption and cause a decline in environmental quality. Referring to Xu et al. (2020), the urban population density is selected to measure the level of population agglomeration.

(4) Foreign direct investment (OPEN)

There is a technology spillover effect on foreign direct investment. It is an important way for the host country to develop and spread technological innovation. The gradual expansion of foreign direct investment not only promotes the economic growth of the host country but also increases carbon dioxide emissions and aggravates the deterioration of the host country’s natural environment. Referring to Wu et al. (2020), the actual use of foreign capital as a percentage of GDP is used to denote the level of openness.

Except for Tibet, Taiwan, Hong Kong and Macao, this paper chooses 30 provinces in China, and the study period is 2011–2019. We obtain these data from the China Statistical Yearbook, government work reports and national economic and social operation bulletins. The descriptive statistics of the chief variables are shown in Table 2.

Table 2 The statistical description of variables

Empirical analysis

Spatial econometric model

Spatial autocorrelation measures the degree of spatial aggregation of spatial units and is the basis for spatial econometric analysis. Following Feng and Wang (2020), this study examines the spatial correlation of ecological efficiency in 30 Chinese provinces during the 2011–2019 period. Moran’s I is used to detect spatial correlations between areas. We can see that the Moran index of environmental pollution and digital finance is greater than 0 from Table 3. This means that environmental pollution and digital finance have a positive spillover effect.

Table 3 The Moran’s I index from 2011 to 2019

To identify the spatial aggregation characteristics of environmental pollution more intuitively, the Moran index scatter plots of pollution in 2011 and 2019 are provided in Fig. 3. There are four quadrants in the Moran index scatter plot. From Fig. 3, we can see that most of the 30 provinces in 2011 and 2019 are distributed in the first and third quadrants, and a few provinces are distributed in the other two quadrants. This more intuitively verifies that environmental pollution is spatially dependent, indicating that the environmental pollution of different provinces has a significant positive correlation. This finding is consistent with Ren et al. (2021).

Fig. 3
figure 3

Moran’s exponential scatter plot of pollution in 2011 and 2019

Benchmark model and spatial econometric model

The results of the baseline model are displayed in Table 4. In this study, we use OLS, FE and RE to regress Eq. (1). To further correct the deviation of the regression results caused by the endogeneity and autocorrelation between variables, generalized moment estimation (GMM) is used to further test Formula (1). From the regression results of OLS, FE, RE and GMM, it can be inferred that digital finance can reduce environmental pollution at the 1% significance level. Digital finance is helpful in broadening the channels for people to participate in environmental protection and increasing the transparency of environmental protection public welfare activities (Cao et al. 2021). The public is deeply involved in environmental protection through the digital financial platform, which greatly enhances the public’s willingness to protect environmental protection. Digital finance advocates the concept of green consumption. Mobile payment can reduce the use of cash, and online financial services can reduce the frequency of the public going to the bank for business (Masmoudi et al. 2019). Digital finance is useful to enlarge the source of capital, solve information asymmetry and spread risks over a wider range. Moreover, digital finance also enhances the efficiency of capital allocation and greatly diminishes the transaction costs of enterprises. It provides convenient financial support for corporate green technology research and development (Sun 2020).

Table 4  The regression results of digital finance on environmental pollution

Table 4 indicates that there is spatial autocorrelation between environmental protection in various provinces of China. We analyse the effect of local digital finance on environmental pollution based on the 0–1 adjacency weight matrix. We found that digital finance can curb environmental pollution in the region, which is consistent with the conclusion of the benchmark regression. In the spatial spillover effect, the estimated coefficients of W*DF are significantly positive, indicating that the progression of local digital finance increases the environmental pollution of neighbouring regions. The possible explanation is that digital finance has many advantages, such as stimulating individual entrepreneurship and corporate innovation and expanding social consumption. The progression of local digital finance has a “siphon effect” on entrepreneurship, technological innovation and consumption in neighbouring regions, which may lead to the loss of technology, talent and capital in neighbouring regions (Xu and Sun 2021). Moreover, the “siphon effect” inhibits the effective use of technological innovation and industrial upgrading in surrounding areas, making digital finance a potential risk of forming a “beggar-thy-neighbour” pollution reduction model among neighbouring areas (Song et al. 2021).

Mediation effect

In the mechanism analysis, this study takes technological innovation, industrial rationalization and industrial upgrading as mediation variables and adopts a mediation effect model to examine the effect of digital finance on environmental pollution (Table 5).

Table 5 Estimation result of the mediation effect

This article measures the effect of technological innovation by selecting the number of invention patents granted. The regression outcome of Model (1) indicates that digital finance improves regional technological innovation capabilities; it is in line with the view that digital finance promotes technological innovation of enterprises (Liu et al. 2022). The estimation result of Model (2) shows that technological innovation can significantly reduce pollutant emissions. This finding is consistent with Shahbaz et al. (2020a). According to the judgment criteria of the mediation effect, technological innovation plays an intermediary role in the impact of digital finance on environmental contamination; that is, digital finance can improve regional technological innovation to lessen environmental contamination. Digital finance can optimize the allocation effectiveness of social capital and guide the flow of social capital to more efficient emerging industries. It improves the effective supply of financial capital and directly affects the development of technological innovation activities (Cao et al. 2021). Moreover, convenient digital financial services also help companies improve productivity and decrease environmental contamination in the production process.

Industrial upgrading is regarded as a mediation variable. The empirical results are revealed in columns (3)–(6) in Table 5. We find that the mediation effect of industrial upgrading and industrial structure rationalization is valid. The main reason is that financial development has become a critical factor affecting the transformation of industrial structure. The factor allocation of digital finance is conducive to optimizing the allocation of funds among industries and stimulating consumption diversity, which is conducive to promoting industrial upgrading and thus achieving pollution reduction (Qin et al. 2021).

The threshold regression model

Previous studies have shown that China has an enormous territory and regional diversity in financial resources. Therefore, the pollution reduction effect of financial resources may show a nonlinear relationship. To verify the potential nonlinear effects of DF, this study constructs a panel threshold regression model of digital finance and environmental contamination. According to the existence test of the threshold effect, we find that the inhibitory influence of digital finance on environmental pollution has a single threshold effect (Table 6).

Table 6 Threshold effect test

We find that the pollution reduction effect of digital finance is divided into two stages (Table 7). When the digital finance index is lower than 2.218, the impact coefficient of digital finance on environmental pollution is − 0.0427; when the DF variable exceeds 2.218, the negative effect of DF on pollution gradually increases (− 0.0756). In general, the negative effect of DF on pollution has gradually increased with the improvement of digital finance. As the intensity of government support continues to increase, the negative effect of DF on pollution first increases and then decreases. Therefore, moderate government subsidies and support are conducive to the role of digital finance in reducing pollution. Furthermore, we have also found that increased marketization can increase the energy conservation and contamination reduction effects of digital finance. Generally, government intervention in the financial market restricts the flow of capital elements, resulting in inefficient allocation of financial resources. Promoting market-oriented reforms can weaken the government’s power to intervene in the economy. The increase in the level of marketization reduces the rent-seeking behaviour of enterprises, which is conducive to transferring more capital to technological innovation and reducing environmental pollution from the source.

Table 7 Regression result of the threshold models

Further analysis

We analyse the effect of the development of digital finance on environmental contamination from the aspects of cover breadth, application depth and digitization level (Table 8). From the perspective of structural effects, the cover breadth, application depth and digitization level of digital finance inclusion have a significantly negative effect on contamination. Among them, the application depth of digital finance has the greatest impact on environmental pollution, and the degree of digitalization has the least impact. The possible reason is that the application depth of digital finance includes the use of services such as internet payment, internet credit and internet wealth management. The continuous improvement of the application depth can further improve the digital inclusive financial system and green high-quality development. Due to the limitations of related infrastructure, the degree of digitalization does not play an active role in environmental governance. The coverage of digital financial inclusion mainly refers to the account coverage of the network, which can efficiently determine the problem of incoordination and imbalance in China’s financial development.

Table 8 Regression result of the further analysis

Robustness and endogenous test

We use two methods to test the robustness of the results. (1) In replacing the spatial matrix, we run the regression model again by replacing the 0–1 adjacency matrix with the economic matrix. (2) In replacing the dependent variable, the full array index method was used to calculate the pollution index, and the SDM methods were used to estimate the model. (3) This study attempts to solve the endogenous problem through instrumental variables. The fibre-optic cable data of each province are selected as the instrument variable of DF. The distribution of fibre-optic cables may affect the popularization of the internet and digital finance. Therefore, selecting the number of fibre-optic cables as the instrumental variable of regional digital finance meets the correlation requirements. Furthermore, the number of post offices does not directly affect regional pollution, which meets the exogenous requirements of instrumental variables. Therefore, this paper takes the interaction term of multiplying the length of the optical fibre cable by time as the instrumental variable of digital finance. According to the robustness results (column 1), when an economic matrix is used to re-estimate the model, the coefficients of DF are positive, which proves that our regression results are robust. Moreover, the regression results of the full array index method also show that digital finance reduces pollution (column 2). From the endogenous test (columns 3–4), the first-stage regression results indicate that the fibre-optic cable promotes digital finance, and the instrumental variable is related to digital finance. According to the second-stage regression results in the second column, the coefficient of digital finance is still positive. Hence, the above empirical results are reliable (Table 9).

Table 9 Robustness results

Conclusion

Since previous studies have ignored the impact of digital finance on pollution, this paper systematically analyses digital finance and environmental pollution to enrich and expand the breadth and depth of research in the field of environmental governance. According to the empirical analysis, some practical conclusions are drawn. (1) The development of digital finance can significantly inhibit environmental pollution. (2) There is a significant positive spatial spillover effect of digital finance on environmental pollution. (3) Through the analysis of the intermediary model, we found that digital finance affects pollution through three channels: technological innovation, industrial upgrading and rationalization of industrial structure. (4) The degree of marketization and government support can enhance the inhibitory effect of digital finance on pollution. Therefore, we propose some policy recommendations.

First, the research conclusion shows that digital finance has a significant inhibitory effect on environmental pollution, through which the degree of marketization and government support can alleviate environmental pollution. Therefore, local governments should continue to support and encourage digital finance, vigorously advance the construction of infrastructure conducive to the development of digital finance and improve the supporting equipment. Given that the degree of marketization and government support are important in the influence of digital finance on environmental pollution, the government should optimize the business environment and stimulate market vitality. Second, considering the spatial spillover effect of digital finance on environmental pollution, especially China’s vast territory and huge differences in economic and financial development levels among provinces, it is necessary to strengthen the coordination and cooperation of regional financial development and environmental protection, popularize the knowledge of digital finance for residents and enterprises in poor and remote areas and give better play to the radiation role of digital finance to reduce environmental pollution. Third, the results indicate that digital finance is conducive to inhibiting environmental contamination through technological innovation, industrial upgrading and rationalization of industrial structure. Therefore, while enjoying the convenience brought by digital finance, enterprises should vigorously strengthen technological innovation, increase R&D investment, improve innovation levels, implement cross-regional innovation cooperation and improve resource utilization. In addition, local governments should actively support the transformation and upgrading of industries to facilitate the rational development of industrial structure.

This paper makes an exploration of the influence of digital finance on environmental pollution, but there are still limitations, which can be further expanded in the future. Firstly, this paper does not discuss the heterogeneity of the impact of digital finance on pollution. Future research can analyse the heterogeneous impact of digital finance on pollution from the aspects of geographic location, economic development level and institutional environment. Second, the gradual integration of mobile internet technology and the traditional financial industry provides a convenient channel for easing corporate financing constraints, which will have an impact on corporate productivity and energy efficiency. Therefore, future research can analyse the role of AI development between digital finance and environmental governance in the context of digital economy development. Third, superior institutional quality plays an important role in financial development and technological innovation. Therefore, scholars can analyse the impact of institutional quality on financial digitization and technological progress from the perspective of property rights, regulations and marketization. In addition, scholars can analyse the emission reduction effect of digital finance using more microdata (such as enterprise level, industry level).