MacLeod resigned as manager shortly after the 1978 World Cup, and Jock Stein, who had won nine consecutive Scottish league titles and the European Cup as manager of Celtic, was appointed as his successor. After failing to qualify for the 1980 European Championship, Scotland qualified for the 1982 FIFA World Cup from a tough group including Sweden, Portugal, Israel and Northern Ireland, losing just one match in the process. They beat New Zealand 5–2 in their first game at the World Cup, but lost 4–1 to a Brazil team containing Sócrates, Zico, Eder and Falcão. Scotland were again eliminated on goal difference, after a 2–2 draw with the Soviet Union.