Rugby was first played in Japan's treaty ports as early as 1866. Popular contribution by local university teams was established in 1899 and Japan's first recorded international match was a match against a Canadian team in 1932. Notable games for Japan include a victory over the Junior All Blacks in 1968, and a narrow 6–3 loss to England in 1971. Famous wins by Japan include a 28–24 win over a Scotland XV in 1989 and a 23–8 success over Wales in 2013. In the 2007 Rugby World Cup, Japan drew 12–12 against Canada. In 2011, Japan displayed its progress by winning the 2011 IRB Pacific Nations Cup, played in contradiction of Fiji, Samoa and Tonga. Further progress was displayed in 2014 when Japan completed a string of ten successive test to rank in the world's top 10 teams. This continued into 2015 where they produced the first of their three biggest upsets when in a Rugby World Cup pool match against the Springboks, which they won 34–32. In the years between, Japan faced quality opposition, playing relatively well with solid results with a tie against France, and a narrow loss to Wales at Cardiff. Their second shock win was a 19–12 defeat of world number-two ranked Ireland in a 2019 Rugby World Cup pool game. Emerging unbeaten from the tournament's pool stage after a 28–21 victory over Scotland, Japan made their first-ever World Cup quarterfinal appearance, going down 3–26 to eventual world champions South Africa.