Mexico Europeans. In 1521, the Spanish Empire conquered and colonized the territory from its politically powerful base in Mexico-Tenochtitlan (part of Mexico City), which was administered as the viceroyalty of New Spain. Three centuries later, the territory became a nation state following its recognition in 1821 after the colony's Mexican War of Independence. The post-independence period was tumultuous, characterized by economic inequality and many contrasting political changes. The Mexican–American War (1846–1848) led to a territorial cession of the extant northern territories to the United States. The Pastry War, the Franco-Mexican War, a civil war, two empires, and the Porfiriato occurred in
Rancho Santiago de Santa Ana County given under Spanish Rule which were rare during this time. This was only two and a half months before the start of the war for Mexican Independence (1810-1821). The surrounding land grants or ranchos were granted by the Mexican government after Mexican independence in 1821. José Antonio Yorba built an elaborate adobe hacienda, El Refugio (the Refuge), located near present-day First and Sullivan Streets in western Santa Ana. With the Mexican Cession of California to the United States following the Mexican-American War, the 1848 Treaty of Guadalupe Hidalgo provided that the land grants would be honored. As required by