section_path: History/Spanish conquest and colonial era (1519–1821)
section_name: Spanish conquest and colonial era (1519–1821)
paragraph_text: Spanish conquest and colonial era (1519–1821)
  
  Although the Spanish Empire had established colonies in the Caribbean starting in 1493, only in the second decade of the sixteenth century did they begin exploring the east coast of Mexico. The Spanish first learned of Mexico during the Juan de Grijalva expedition of 1518. The Spanish conquest of the Aztec Empire began in February 1519 when Hernán Cortés founded the Spanish city of Veracruz. The 1521 capture of Tenochtitlan and immediate founding of the Spanish capital Mexico City on its ruins was the beginning of a 300-year-long colonial era during which Mexico was known as Nueva España (New Spain). Two factors made Mexico a jewel in the Spanish Empire: the existence of large, hierarchically organized Mesoamerican populations that rendered tribute and performed obligatory labor and the discovery of vast silver deposits in northern Mexico.
  
  The Kingdom of New Spain was created from the remnants of the Aztec empire. The two pillars of Spanish rule were the State and the Roman Catholic Church, both under the authority of the Spanish crown. In 1493 the pope had granted sweeping powers to the Spanish monarchy for its overseas empire, with the proviso that the crown spread Christianity in its new realms. In 1524, King Charles I created the Council of the Indies based in Spain to oversee State power in its overseas territories; in New Spain the crown established a high court in Mexico City, the Real Audiencia ('royal audience' or 'royal tribunal'), and then in 1535 created the Viceroyalty of New Spain. The viceroy was the highest official of the State. In the religious sphere, the Diocese of Mexico was created in 1530 and elevated to the Archdiocese of Mexico in 1546, with the archbishop as the head of the ecclesiastical hierarchy. Castilian Spanish was the language of rulers. The Catholic faith was the only one permitted, with non-Catholics and Catholics (excluding Indians) holding unorthodox views being subject to the Mexican Inquisition, established in 1571.
  
  Spanish military forces, sometimes accompanied by native allies, led expeditions to conquer territory or quell rebellions through the colonial era. Notable Amerindian revolts in sporadically populated northern New Spain include the Chichimeca War (1576–1606), Tepehuán Revolt (1616–1620), and the Pueblo Revolt (1680), the Tzeltal Rebellion of 1712 was a regional Maya revolt. Most rebellions were small-scale and local, posing no major threat to the ruling elites. To protect Mexico from the attacks of English, French, and Dutch pirates and protect the Crown's monopoly of revenue, only two ports were open to foreign trade—Veracruz on the Atlantic (connecting to Spain) and Acapulco on the Pacific (connecting to the Philippines). Among the best-known pirate attacks are the 1663 Sack of Campeche and 1683 Attack on Veracruz. Of greater concern to the crown was the issue of foreign invasion, especially after Britain seized in 1762 the Spanish ports of Havana and Manila in the Seven Years' War. It created a standing military, increased coastal fortifications, and expanded the northern presidios and missions into Alta California. The volatility of the urban poor in Mexico City was evident in the 1692 riot in the Zócalo. The riot over the price of maize escalated to a full-scale attack on the seats of power, with the viceregal palace and the archbishop's residence attacked by the mob.