Mexico got its name from its capital Mexico-Tenochtitlan. The indigenous people of Mexico were hunter-gatherers who later domesticated corn, sparking an agricultural revolution. In the 1500s, Mexico was invaded by Spain and later France in the 1800s, resulting in many indigenous deaths and Mexico gaining independence from Spain in 1821 after wars for independence. Mexico has over 92 million people, with two-thirds living in cities and the rest in rural areas. Approximately 6.7% of Mexicans speak indigenous languages today.