Real kicked off the 2017–18 campaign by winning its second consecutive and fourth overall UEFA Super Cup in a 2–1 victory against Manchester United. Five days later, Real Madrid beat Barcelona at the Camp Nou 3–1 in the first leg of the 2017 Supercopa de España and then defeated Barça 2–0 in the return leg, ending their 24 consecutive match scoring record in "El Clásico" matches and winning the second trophy of the season. On 16 December 2017, Real beat Brazilian club Grêmio 1–0 in the FIFA Club World Cup final and became the first team to retain the trophy. On 24 January 2018, Madrid was knocked out of the Copa del Rey at the quarter-final stage by Leganés on away goals. The team's league campaign was also a disappointment as Real collected only 76 points and finished third, 17 points behind champions Barcelona. Madrid fared far better in the Champions League, once again progressing to the final where they defeated Liverpool 3–1 to become the first club to win three straight titles in the Champions League era, as well as the first team to win three consecutive titles in the European Cup/Champions League since Bayern Munich in 1976. The trophy also marked Madrid's fourth win in five years and their eighth consecutive semi-final appearance. On 31 May, only five days after winning the final, Zidane announced his resignation as Real Madrid manager, citing the club's "need for change" as his rationale for departing. Madrid ended the season with four trophies out of possible six.