San Pedro de Atacama, at about elevation, is like many of the small towns.
With the guano and saltpeter booms of the 19th century the population grew immensely, mostly as a result of immigration from central Chile.