sentences:  At the end of 1838, Ures became a city; and was the capital of Sonora from 1838 to 1842, and again from 1847 to 1879.Afterwards, it became the seat of a district, until these were abolished in 1917.In this region there were some notable events, as the Apache insurrection, when Geronimo took refuge in the mountains of this region when generals Crook and Miles fought him in Arizona.