Native American tribes inhabited Texas for millennia before Spanish colonization began in 1519 (Alonso Álvarez de Pineda's coastal exploration). "Mexicans" as a national identity emerged only after Mexico's independence from Spain in 1821. Indigenous peoples were first by thousands of years.