The May Revolution of 1810 prompted the wars for independence. The United Provinces of South America struggled to supply their troops, however, and in 1813, the Buenos Aires Munitions Works were established by the Primera Junta regime; de Luca was appointed director of the facility in 1814. One of only two such facilities (the other being in Tucumán), the munitions works forged guns, carbines, sabers, cannon, ordnance, and horseshoes mainly with salvaged scrap iron and de Luca's adaptations.