The town became one of the centres for saltpetre mining in Chile.