Founded by the Spanish in 1580 the city persisted despite numerous attacks by Mapuche, Pehuenches and other tribes in war with Spain. Over time Chillán became an important marketplace where Mapuches, Pehuenches, Mestizos and Criollos met. Many goods from Patagonia and the Argentine Pampas were brought into the market of Chillán across the mountain passes of the area. In the early 19th century the countryside of Chillán was ravaged by the Chilean War of Independence and a subsequent banditry epidemic. In 1939 the city was devastated by a large earthquake prompting the government to initiate an extensive reconstruction program.