Mexico defeated Ecuador 2-0 to qualify for the round of 16 for the first time since 1986.
The victory was secured before a home crowd of 80,000 at the Azteca Stadium.
Celebrations in Mexico City turned tragic as three fans died from suffocation in the crowds.
Mexico will play their next knockout match on July 5 against England or DR Congo.