Overview
{{Infobox country
| conventional_long_name = Viceroyalty of New Spain
| native_name =
| common_name = New Spain
| era = Colonial era
| empire = Spain
| government_type = Viceroyalty
| year_start = 1521
| year_end = 1821
| event_pre = Conquest of the Aztec Empire
| date_pre = 1519–1521
| event_start = Kingdom created
| date_start =
| event1 = Venezuela annexed to Kingdom of New Granada
| date_event1 = 27 May 1717
| event2 = Panama annexed to New Kingdom of Granada
| date_event2 = 1739
| event3 = Acquisition of Louisiana from France
| date_event3 = 1762
| event4 = Treaty of San Ildefonso
| date_event4 = 1 October 1800
| event5 = Adams-Onís Treaty
| date_event5 = 22 February 1819
| event6 = Trienio Liberal abolished the Kingdom of New Spain
| date_event6 = 31 May 1820
| event_end = Mexican War of Independence and Central American Independence
| date_end =
| p1 = Governorate of Cuba
| flag_p1 = Royal Banner of the Crown of Castille (Habsbourg Style).svg
| p2 = Aztec Empire
| flag_p2 = Aztec Triple Alliance.png
| p3 = Purépecha Empire
| flag_p3 = Glifo Michhuahcān.png
| p4 = Maya civilization
| p5 = Louisiana (New France)
| flag_p5 = Royal flag of France.svg
| p6 = Tlaxcala (Nahua state)
| flag_p6 = Vexilloids de Tlaxcala.png
| p7 = Indigenous peoples of the Americas
| p8 = Cebu (historical polity)
| p9 = Maynila (historical polity)Maynila
| p10 = Sultanate of Ternate
| flag_p10 = Flag carried during a Ternatean king ceremony, de Bry (1601).svg
| s1 = First Mexican Empire
| flag_s1 = Bandera del Primer Imperio Mexicano.svg
| s2 = Spanish West Indies
| flag_s2 = Flag of Spain (1785-1873 and 1875-1931).svg
| s3 = Spanish East Indies
| flag_s3 = Flag of Spain (1785-1873 and 1875-1931).svg
| s4 = Louisiana (New France)
| flag_s4
From Wikipedia (CC BY-SA 4.0).