Mexico has a long history as home to many indigenous civilizations like the Aztecs. For thousands of years, these civilizations developed complex cities and societies until the arrival of the Spanish in 1519. Mexico was then colonized by Spain for 300 years, devastating the indigenous population, before gaining independence in 1821. It has since struggled to balance Western influence with its indigenous heritage as a newly formed nation.