Introduction

Peru is one of the most important countries in Latin America and the world in mining production and export (Aron and Molina 2020). Worldwide, Peru ranks second in the production of copper, silver, and zinc, while in Latin America, it occupies the first place in the production of gold, zinc, lead, tin, diatomite, analucite, and selenium (Appendix Table 5).

“Mining is an extractive activity that takes place all over the world” (Osinergmin, 2017); it influences the standard of living of the population through the impact on the environment and socioeconomic status (Kitula 2006; Ticci and Escobal 2015); it is a source of environmental liabilities and socio-environmental conflicts (Dammert and Molinelli 2007). The large-scale mining industry in general is relatively capital-intensive. “Capital is requerid to conduct exploration, feasibilility studies, design mines, purchase mining equipament, procesing plants, develop mine infraestructura or recapitalise producing mines” (Seeger 2019). The artisanal and small-scale mining (ASM) is a formal or informal sector with limited available information on production, revenues, explorations, and extraction, which is normally low capital-intensive and uses high labor-intensive technology (Sidorenko et al. 2020). Nevertheless, ASM mining is important for rural livelihoods for many rural and regional communities (Loayza and Rigolini 2016; Osumanu 2020; Ticci and Escobal 2015).

From a macro-perspective, the contribution of the mining sector to the economy includes employment, exports, fiscal revenues, road infraestructura, livelihoods, investment, and contribution to GDP through linkage industries. The dynamism of the mining sector in Peru, at the macroeconomic level, has contributed to exports and the growth of the economy. Between 2010 and 2019, the GDP of the mining sector grew at an average annual rate of 3.9%, and in the period 2010–2020, it explained 10% of the national GDP (IPE 2021; MINEM 2019); likewise, it has contributed 59.26% of total exports (Appendix Table 5).

At the microeconomic level, mining activity has contributed positively to household income, employment, education, and food expenses and negatively to the environment where mining is located (Balanay et al. 2014; Landa 2017; Loayza and Rigolini 2016; Torres 2015). In the case of Arequipa in Peru, they show that mining activity in a district increases the probability that households access basic services (water, hygienic services, and electricity) but decreases the likelihood that people engaged in this activity achieve a university higher education (Nolazco and Figueroa, 2015).

The mining activity caused by the mining boom can influence the economic and social well-being of households through the following channels: first, the demand for labor and input by the mining company and the effect on non-mining sectors through back and forth linkage; second, the fiscal channel through the transfer of fiscal revenues and royalties to local governments; third, through mining company development projects and social responsibility initiatives; finally, through the environmental channel that generates the extraction of the mining resource (Antoci et al. 2019; Gamu et al. 2015; Ticci and Escobal 2015).

From a technical regulatory point of view, mining activity in Peru is classified into two large groups: formal mining and non-formal mining. Non-formal mining in turn is subdivided into informal mining and illegal mining. “Formal mining is one that complies with all the mining, environmental, social, labor, tax requirements and permits established in legal regulations and includes large-scale mining, medium-scale mining, small-scale mining and artisanal mining” (Vargas 2014). “This activity carried out by a person, natural or legal, who has authorization to start or restart mineral exploration, exploitation and/or benefit activities and/or benefit concession title issued by the competent authority” (MINEM 2017). Informal mining is one that does not comply with permits to carry out mining activity, operates in non-prohibited areas, has a declaration of commitment and is in the process of formalization, and includes the small mining producerFootnote 1 (SMP) and the artisanal mining producerFootnote 2 (AMP) (Vargas 2014). This activity is carried out by natural or legal persons or a group of organized persons who have started a formalization process. This type of mining is carried out using equipment and machinery that do not correspond to the characteristics of the mining activity of the small mining producer or artisanal mining producer or without complying with the requirements of the administrative, technical, social, and environmental regulations that govern such activities in zones not prohibited for mining activity (MINEM 2017). Illegal mining is one that does not comply with the permits to carry out mining activity, operates in prohibited areas and/or uses large capacity machinery, and is subject to interdiction and eradication (Vargas 2014). Illegal mining is carried out by a natural or legal person or a group of people organized using equipment and machinery that does not correspond to the characteristics of the mining activity carried out by the SMP or AMP or without complying with the requirements of the regulations and of an administrative, technical, social, and environmental nature that govern these activities (MINEM 2017).

According to ownership, mining activity is classified into two large regimes: the general regime and the regime of small mining and artisanal mining. The general regime includes medium- and large-scale mining, and the artisanal and small mining (ASM) regime includes the small mining producer (SMP) and the artisanal mining producer (AMP) (Wiener 2019). Large mining and medium mining are formal, while ASM is formal, informal, and illegal; most of it is informal and ilegal, and ASM carries out extractive activities on a small scale; however, the rise in mineral prices in recent decades has boosted this activity even outside of the law and current institutions (MINAM 2016). ASM’s mining activity has become more dynamic, mainly in the departments of Madre de Dios, Puno, Ica, Ayacucho, Arequipa, and La Libertad, respectively (Argota et al. 2014).

The department of Madre de Dios, with greater intensity of informal gold extraction, attracts many migrants who moved to the Huepetue district basin from the Andean highlands, to work in mining as a means of subsistence. However, ASM is not exclusively a poverty-driven activity. There is an elite of small-scale mining entrepreneurs with a “resource nationalist” discourse who oppose large-scale mining projects (Cortés-McPherson 2019). Rich miners move easily between the formal, informal, and illegal world, in the middle of a city with unpaved streets and a lack of basic services, yet the local industry produces 9 tons of gold per year (Cortés-McPherson 2019). Regarding deforestation due to small mining and artisanal minerals, Espejo et al. (2018) estimate that in the period 1984–2017 in the southern Peruvian Amazon 100 thousand ha have been deforested, of which 10% occurred in 2017 and 53% between the years 2011 and 2017.

Informal and illegal gold production generally ranks third or second nationally. It is estimated that between 300 and 500 thousand of the number of artisanal gold miners throughout the country and that 1 million people (3% of the country’s population) are directly or indirectly linked to the activity, of which it is estimated that the 90% are informal and illegal miners (Cano 2020). In 2012, with the aim of formalizing ASM’s informal miners, the Comprehensive Mining Formalization Registry (REINFO) was created, where natural or legal persons carry out the mining activity of exploitation and/or benefit. Until April 24, 2021, 88,729 miners were registered for the formalization, of which the majority correspond to the southern departments: Arequipa (21.40%), Ayacucho (12.04%), Puno (10.80%), Apurímac (10.4%), and Madre de Dios (8.81%) (MINEM 2021).

The dynamism of the mining sector, driven by the extraordinary increase in international mineral prices since 2003, has increased the fiscal resources of local district and provincial governments above the levels observed before the price boom (Maldonado 2011). In the case of the southern Peruvian Amazon, where artisanal mining predominates, the dynamism of gold extraction is due not only to the rise in international prices, but also the construction of the Interoceanic Highway (Manrique and Sanborn 2021). However, small-scale mining and artisanal mining have multiple origins, such as the economic crisis during the 1970s and 1980s, easy access to exploitation areas, low monetary and technological investment, colonization, and emigration policies, as well as the emigration generated by political violence to areas with little state presence (Manrique and Sanborn 2021).

Figure 1 shows the evolution of Peru’s average monthly district per capita family income between 2003 and 2019. As can be seen in the figure, per capita family income increased steadily from 2007 onwards. The per capita family income of the mining districts increased at a faster rate than that of non-mining districts during this period. In 2003, the income gap in favor of the mining districts was 18 soles;this gap increases to 227 soles in 2019. The average income of the districts evolves at the same speed as the total income of the country.

Fig. 1
figure 1

Source: UNDP 2003, 2007, 2011, 2015 and 2019. Elaboration. Own

Average district per capita family income: 2003–2019.

In relation to the distribution of per capita family income in the district of Peru, in 2013–2019, Fig. 2 shows that the income distribution curves tend to flatten over the years, which means that there is an increase in the dispersion of the incomes. Between 2003 and 2007, it is observed that there is a greater increase in the dispersion of income, despite the fact that in this period the average family income per district capital had a slight downward variation. These results are consistent with the findings of Escobal and Ponce (2012) that show that in the period 2004–2007, there is a stagnation in the Gini coefficient and a worsening in the polarization and segregation indicators. The authors show a trend of segregation and spatial polarization in favor of large cities as opposed to small cities and towns, as well as the polarization between indigenous and non-indigenous groups. As of 2007, the distribution curves tend to flatten over the years but in a more moderate way.

Fig. 2
figure 2

Source: UNDP 2003, 2007, 2011, 2015 and 2019. Elaboration. Own

Distribution of district per capita family income.

In the period 2003–2019, the district’s per capita family income increased by an average of 319 soles; in the mining districts, this increase was 500 soles. However, the minimum and maximum values of the variation in income fluctuate between − 460 and 1471 considering all the mining and non-mining districts and between − 281 and 1471 in the mining districts. In 2003, the year in which the rise in the price of minerals began, the distribution of income at the district level was more homogeneous, but the majority of districts were poor. The richest quintile had a per capita family income between 359 and 1216 soles; these districts are located mainly on the southern coast of Peru and near mining sites (Fig. 3a). In 2019, the districts of the richest quintile in Peru have per capita family income levels that vary between 889 and 2037 soles. However, other districts of the sierra and jungle are incorporated into this group, which are located mainly near the mining centers of Arequipa, Madre de Dios, Puno, and Apurimac (Fig. 3a and b).

Fig. 3
figure 3

Source: UNDP 2003 and 2019. Elaboration. Own

District per capita family income and metal mining-producing districts. a District per capita family income. b Districts with metal mining.

The mining districtsFootnote 3 in which per capita income increased above 1,000 soles are Amanea in Puno (1,471 soles), Chicla in Lima (1,339 soles), Torata in Tacna (1,335 soles), Huepetuhe in Madre de Dios (1305 soles), Morococha in Junín (1283 soles), Samegua in Moquegua (1181 soles), Ite in Tacna (1147 soles), Bella Unión in Arequipa (1091 soles), Ilabaya in Tacna (1054 soles), Rio Grande in Arequipa (1040 soles), and Rioja in San Martín (1012 soles).

On the contrary, the mining districts where income decreased the most are San Juan de Tantaranche in Lima (281 soles), Ongón in La Libertad (135 soles), Tumay Huaraca in Apurímac (101.52 soles), Usquil in La Libertad (98 soles), Sarín in La Libertad (93 soles), Layo in Cusco (27 soles), Catilluc in Cajamarca (27 soles), San Miguel de Aco in Ancash (13 soles), and Santa Ana de Tusi in Pasco (7 soles).

In this context, the objective of the research is to quantify the effect of mineral extraction on the per capita income level at the district level in Peru in the period 2003 and 2019.

Methodology

To measure the impact of metal mining on the level of per capita family income at the district level, the following econometric model of differences in differences is proposed (Bernal and Peña 2011):

$${y}_{it}={\beta }_{1}+{\beta }_{2}{D}_{i}+\gamma {T}_{i}+\delta ({T}_{i}*{D}_{i})+{e}_{it}, i=1, 2, \dots , 110; t=\mathrm{1,2}$$
(1)

where in the per capita family income of the household, it is a dichotomous variable that takes the value of 1 if the district is a producer of metallic minerals (treatment group) and 0 if it is not a producer of minerals (control group); it is a dichotomous variable that takes the value of 0 at t = 1 (period prior to implementation) and 1 at t = 2 (period after implementation of treatment or follow-up) (Bernal and Peña 2011). From the equation, the expected per capita family income is obtained for the treatment and control group for periods 1 and 2, which is shown in Table 1 and graphically illustrated in Fig. 4.

Table 1 Expected income of the treatment and control group before and after treatment
Fig. 4
figure 4

Source: Prepared based on Abadie and Cattaneo (2018)

Difference-in-difference estimator.

The impact of the program by the difference-in-difference method would be given by

$$\delta =\left[E({y}_{i,T=1}\left|{D}_{i}=1\right.)-E({y}_{i,T=0}\left|{D}_{i}=\right.1)\right]-\left[E({y}_{i,T=1}\left|{D}_{i}=0\right.)-E({y}_{i,T=0}\left|{D}_{i}=\right.0)\right]$$
(2)

When writing the estimator of Eq. (2), for the sample analog, we have

$$\delta =\left[({\overline{y} }_{2}\left|{D}_{i}=1\right.)-({\overline{y} }_{1}\left|{D}_{i}=1\right.)\right]-\left[({\overline{y} }_{2}\left|{D}_{i}=0\right.)-({\overline{y} }_{1}\left|{D}_{i}=0\right.)\right]$$
(3)

That is, the impact is the result of the difference in the sample mean between the treatment group and the control group in the period 2 minus the difference in the sample mean between the treatment group and the group of control in period 1. Equation (3), alternatively, can be written in terms of differences as

$$\delta =\left[\Delta \overline{y }\left|{D}_{i}=1\right.\right]-\left[\Delta \overline{y }\left|{D}_{i}=0\right.\right]$$
(4)

where \(\Delta \overline{y }\left|{D}_{i}=1\right.\) and \(\Delta \overline{y }\left|{D}_{i}=0\right.\) are the variations in the outcome variable in the treatment and control groups, respectively. In Eq. (4), there is a double difference. The first, \(\Delta \overline{y }\left|{D}_{i}=1\right.\) and \(\Delta \overline{y }\left|{D}_{i}=0\right.\). The second difference is given by the differences between the previous ones, that is,\((\Delta \overline{y }\left|{D}_{i}=1)\right.-(\Delta \overline{y }\left|{D}_{i}=0)\right.\). The second difference aims to control the factors that vary over time (Bernal and Peña 2011).

To estimate the effect of mining production on the district’s per capita family income, Eq. (5) is formulated, controlling for the geographic altitude and the surface of the district:

$${y}_{it}={\beta }_{1}+{\beta }_{2}{D}_{it}+\gamma {T}_{it}+\delta ({T}_{it}*{D}_{it})+{\alpha }_{1}Altitud{e}_{i}+{\alpha }_{2}Surfac{e}_{i}+{e}_{it}$$
(5)

However, the mining districts not only benefit from the same mining activity, but also from the mining canon (MC) that local governments receive. Likewise, mining can influence family income in neighboring districts through the demand for employment or other inputs and its multiplier effect in non-mining sectors through backward and forward linkages or other spillover effects (Antoci et al. 2019).

The spillover effect is seen as the degree of development of a region is influenced by other regions. In this sense, Anselin (1988) took spatial dependence from the perspective of spillover externalities through a spatial econometric model. The model is decomposed into direct and indirect effects; the indirect effect reflects the spillover effect of the explanatory variable on the dependent variable. In order to capture the direct and direct impact of mining on the non-mining districts of the mining province, an econometric model is proposed with spatial spillover effects in the regressors and spatial dependence on the error term:

$$\begin{array}{c}y_{it}=\beta_1+\beta_2D1_{it}+\beta_3D2_{it}+\beta_4MC_{it}+\gamma T_{it}+\delta_1(T_{it}\ast D1_{it})+\delta_2(T_{it}\ast D2_{it})+\delta_3(T_{it}\ast D1_{it}).W+\delta_4(T_{it}\ast D2_{it})W+\beta_5Altitude_i+\beta_6Surface_i+e_{it}\end{array}$$
(6)
$${e}_{it}=\lambda W{e}_{it}+{u}_{it}$$

where D1 identifies the mining district, D2 identifies the non-mining district found in the mining province, CM is the per capita district mining canon, W is a connection matrix or spatial continuity,\({\beta }_{1}\) is the constant term of the regression, \({\beta }_{1}\) is a parameter that captures the direction that exists between the per capita income between the mining and non-mining district, \({\beta }_{3}\) is a parameter that captures the difference in the per capita income of the non-mining district belonging to the mining province and the rest of the districts, \({\delta }_{1}\) measures the impact direct impact of mining on the per capita family income of the mining district, \({\delta }_{2}\) measures the direct impact of mining on the per capita family income of the non-mining district of the mining province, \({\delta }_{3}\) measures the indirect impact of mining on the per capita family income of the mining district, and \({\delta }_{4}\) measures the indirect impact of mining on the per capita family income of the non-mining district of the mining province.

Data

The UNDP data for Peru at the district level for the period 2003–2019 is used. Table 2 shows the descriptive statistics of the data used to evaluate the impact of mining.

Table 2 Descriptive statistics

Results and discussion

The difference-in-difference model (Eq. (5)), estimated using the ordinary least squares method, is shown in Table 3, having as control variables the geographical altitude of the district (meters above sea level) and the area of the district in square kilometers, and shows the following findings: mining activity has a positive and significant impact on per capita family income, in the period 2003 and 2019; the estimated impact was 207.42 soles, while in the sub-periods 2007–2011, 2011–2015, and 2015–2019, they were 85.09 soles, 59.25 soles, and 56.88 soles. In the period 2003–2007, they were not significant (Table 3). These results are consistent with the hypothesis that the increase in the demand for labor in mining areas generated by the mining boom translates into an increase in local wages, regardless of whether workers are employed in mining or not (Hunter et al. 2014).

Table 3 Impact of mining on district per capita family income (Eq. (5))

It should be noted that the sum of the impacts in sub-periods coincides with the global impact of the period 2003 and 2019, which corroborates the adequate estimation of the results. The greatest impact of mining occurred in the period 2007–2011, which corresponds to the period of the third gold rush (2005–2012), where international prices registered the highest peaks. In order to illustrate the impact of mining, the model is written for the period 2003–2016 (column 6, Table 3), in the form of an equation:

$$\begin{array}{c}y_i=478.86+24.53D_i+291.66T_i+207.42\ast(D_i\ast T_i)+-0.09\ast Altitude_i-0.02\ast Surface_i+e_{it}\end{array}$$
(7)

For an average altitude of 2237 m above sea level, an average area of 690 km2, Eq. (7), results

$${y}_{i}=263.72+24.53{D}_{i}+291.66{T}_{i}+207.42({D}_{i}*{T}_{i})+{e}_{it}$$
(8)

According to Fig. 5, in 2003, the districts without mining had an average per capita income of 263.72 soles while the mining districts 288,251 soles. In 2019, the per capita family income of the districts without mining reached 555.38 soles, while in the districts with mining, it reached 787.33 soles. If the mining districts had not had mining, in 2019 the per capita family income would have been 579.91 soles. Therefore, the impact of mining on per capita family income is 207.42 soles.

Fig. 5
figure 5

Impact of mining on per capita income: 2003–2019

Table 4 shows the results of the regression model that show the direct and indirect impact of mining on per capita family income when the spillover effect is taken into account. During the period 2003–2019 the total impact in the mining-producing district was 291.61 soles, being the direct impact of 189.77 and the indirect impact of 101.84 soles. Likewise, there is a total impact of 77.25 soles on the per capita income of the neighboring non-mining districts of the mining province, the indirect impact being 66.72 soles. In the sub-periods 2003–2007, 2007–2011, 2011–2015, and 2015–2019, the total impact of mining on per capita family income was 25.86 soles, 127.47 soles, 51.26 soles, and 101.48 soles, respectively, while the impact on neighboring non-mining districts was 46.07 soles in the 2007–2011 period and 28.89 soles in the 2015–2019 period, in the rest of the periods, it was not significant. These results corroborate the hypothesis of the existence of a spillover effect of mining on per capita income (Antoci et al. 2019; Loayza and Rigolini 2016). The interpretation of this effect could be explained by the employment that the gold mining center generates positive “spillovers” in the geographic areas near and distant from such centers (Tello 2018). These results go in the direction of the findings of Loayza and Rigolini (2016), who find that mining activity in Peru has a positive impact on the per capita income/consumption of mining and non-mining districts. For its part, Kitula (2006), through a case study in the district of Geita in Tanzania, the average income in mining and non-mining communities were US$ 361.47 and US$ 15.04, respectively. Likewise, they show that 66% and 3% of the average family income of mining and non-mining communities is derived from mining. In contrast, in Jordan, comparisons before and after mining, mining activities did not greatly benefit local communities in relation to the country as a whole (Al Rawashdeh et al. 2016).

Table 4 Impact of mining on per capita family income with spillover effect

Regarding the mining canon, the results suggest that the mining canon did not have a significant effect on per capita family income. This result is consistent with the finding of Franco (2020) who shows that mining canon transfers in Peru improve the standard of living of households only when they are high enough to achieve a real impact on the population. Specifically, it shows that households in districts that receive high amounts of mining royalties reduce their levels of deprivation compared to those that receive low amounts. In this line, Loayza and Rigolini (2016) show that the mining canon does not have a detrimental effect or benefit on the socioeconomic level of the population in Peru and suggest that the impact of mining on the socioeconomic level is related to the same activity economic more than the tax revenue that is generated. However, the authors estimate with data until 2007 when the disparity in the per capita mining canon was narrower.

The income from mining canon in Peru is distributed as follows: 10% for the local government of the producing district, 25% for all municipalities in the producing province, 40% for all municipalities in the producing department, 20% for the regional government, and 5% for public universities of the producing department. The purpose of this distribution is to finance investment projects in the areas surrounding the mining exploitation in order to compensate them for the negative externalities generated by extraction; however, these projects do not always generate immediate effects on the well-being of the population.

Conclusions

Mining activity, during the period 2003–2019, shows a positive impact on the level of family income per capita in the mining-producing districts and neighboring districts belonging to the mining-producing province, being the greater impact in the producing district with respect to the impact in the neighboring district. In this sense, mining has played an important role in improving the income of the population of various districts in the interior of the country. In 2003, almost all of the districts with the highest per capita income were located on the coast of Peru, while in 2019, the districts with the highest income extend to some districts of the jungle and highlands of Peru.

The results show that the impact of mining on per capita family income in the mining-producing district was 207.42 soles; however, when considering the spatial spillover effect of mining, the total impact was 291.61 soles, which is decomposed into a direct effect of 189.77 soles and an indirect effect (spillover effect) of 101.84 soles. Likewise, there is a total of 77.25 soles on the per capita family income of the neighboring non-mining district and which the spillover effect is 66.72 soles. These results suggest that it is necessary to take into account the effect of mining spatial spillover.

In the departments with an important presence of informal gold mining such as Arequipa, Madre de Dios, and Puno, although there is an increase in the per capita income of the mining districts, due to the low economic contribution to the government of this type in mining, the transfer of mining canon received by local governments is not enough to carry out public investment projects. In this sense, it is suggested that the Regional Directorates of Energy and Mines put more effort into the process of formalizing small and artisanal miners.

In Peru, the dynamism of the mining sector in recent decades requires the development of a cluster around the mining industry, in order to promote the development of localities near the mining center and generate forward linkages (transformation of raw material into products with higher added value) and backward linkages (purchases of mining companies from local suppliers).