streak that began in July 2015. El Tri placed first in Group C, winning 3–1 over Uruguay and 2–0 over Jamaica, and drawing 1–1 with Venezuela. In the quarterfinal against Chile in Santa Clara, California, the team lost 7–0, ending the unbeaten streak at 16 after nearly a year. After the match, manager Osorio apologized to Mexico's fans for what he described as an "embarrassment, an accident of football". At the 2017 Confederations Cup, Mexico was drawn into Group A along with Portugal, New Zealand, and hosts Russia. El Tri advanced as runners-up of the group, and lost 4–1 to Germany in the semi-finals. Mexico finished fourth in the tournament, losing 2–1 to Portugal in the third-place match. In their opening match of the 2018 FIFA World Cup, Mexico defeated defending champion Germany, thanks to a sole goal from Hirving Lozano, for the first time in a World Cup match. They would go on to defeat South Korea 2–1 in the next game, with goals from Carlos Vela and Javier Hernández, but would fall 3–0 to Sweden in the last group stage match. Despite the loss, Mexico qualified to the round of 16 for the seventh-consecutive tournament. In the round of 16, Mexico was defeated 0–2 by Brazil; the defeat meant that for the seventh tournament in a row, Mexico failed to reach the quarterfinals since they last hosted the World Cup in 1986. On 28 July, Juan Carlos Osorio left as head coach on the expiry of his contract. In January 2019, Gerardo Martino was appointed as Mexico's new head coach, becoming the third Argentine to coach the national team. In that year's Gold Cup tournament, they won all three group stage matches, defeated Costa Rica in penalties 5–4 following a 1–1 draw in the quarter-final and won against Haiti in the semi-final. Mexico won the Gold Cup after defeating the United States 1–0 in the final. 2020s: 2022 World Cup exit In 2021, Mexico finished runners-up in the 2021 CONCACAF Nations League Final and the 2021 CONCACAF Gold Cup, both in which Mexico lost to the United States. At the 2022 FIFA World Cup, Mexico finished third in Group C behind Argentina and Poland (due to goal difference), making it the first time since 1978 that Mexico got eliminated in the group stage. Due to the poor performance, head coach Gerardo Martino and Mexico parted ways immediately after