Title: Toronto Maple Leafs
Content:  The Maple Leafs has won 13 Stanley Cups in its history. Toronto's first two Stanley Cup, in 1918 and 1922, took place when the Stanley Cup tournament operated as an interleague competition. Toronto's subsequent 11 Stanley Cups were awarded after 1926, when it was established as the championship trophy of the NHL. The Maple Leafs won their last Stanley Cup in 1967; with the team's 51-season Stanley Cup drought being the longest active drought in the NHL. The Maple Leafs were also awarded the Prince of Wales Trophy twice, following the 1946–47 season, and the 1962–63 season. The Prince of Wales Trophy was awarded to the club when it was used as NHL's regular season championship trophy.
Title: 1966–67 Toronto Maple Leafs season
Content:  The 1966–67 Toronto Maple Leafs season was the 50th season of the Toronto NHL franchise, fortieth as the Maple Leafs. The Leafs finished third in the NHL with a record of 32–27–11 for 75 points to qualify for the playoffs. Toronto defeated the first-place Chicago Black Hawks four games to two in the semi-finals before upending their arch-rival Montreal Canadiens in six games to win their thirteenth Stanley Cup in franchise history. As of 2021, this is the last time that the Maple Leafs won the Stanley Cup, or even made it to the Finals.
Title: 1967 Stanley Cup Finals
Content:  The 1967 Stanley Cup Finals was the championship series of the National Hockey League's (NHL) 1966–67 season, and the culmination of the 1967 Stanley Cup playoffs. A best-of-seven series, it was contested between the Montreal Canadiens and the Toronto Maple Leafs. The Maple Leafs won the series four games to two. In doing so, they won their thirteenth Stanley Cup championship. To date, this is Toronto's last appearance in the Stanley Cup Finals and they have the longest-active championship drought in the NHL at 54 (not including 2004–05 lockout) seasons. The 1967 Stanley Cup Finals was also the last Stanley Cup Finals in the Original Six Era. This was also the last all-Canadian Finals series until 1986.
Title: 1964 Stanley Cup Finals
Content:  The 1964 Stanley Cup Finals was the championship series of the National Hockey League's (NHL) 1963–64 season, and the culmination of the 1964 Stanley Cup playoffs. It was contested between the defending champion Toronto Maple Leafs and the Detroit Red Wings for the second straight year. The Maple Leafs won the best-of-seven series, four games to three, to win the Stanley Cup, their third-straight championship. As of 2019, this was the last time the Stanley Cup Finals had ended before the month of May. There would not be another game seven at Maple Leaf Gardens for almost three decades.
Title: 1947 in Canada
Content: April 19 - The Toronto Maple Leafs win their sixth Stanley Cup by defeating the Montreal Canadiens 4 games to 2. The deciding Game 6 was played in Maple Leaf Gardens in Toronto. ; April 22 - The Ontario Hockey Association's Toronto St. Michael's Majors win their third (and last until 1961) Memorial Cup by defeating Southern Saskatchewan Junior Hockey League's Moose Jaw Canucks 4 games to 3. The deciding Game 7 was played at Regina Exhibition Stadium. ; November 29 - The Toronto Argonauts win their eighth Grey Cup by defeating the Winnipeg Blue Bombers 10 to 9 in the 35th Grey Cup played in Varsity Stadium in Toronto. This was the last Grey Cup to be won by a team with all Canadian players. 
Title: 1951 Stanley Cup Finals
Content:  The 1951 Stanley Cup Finals was contested by the Toronto Maple Leafs and the Montreal Canadiens. The Maple Leafs won the series 4–1, with all five games going into overtime. It was the Toronto franchise's ninth Stanley Cup win and the last in a series of six wins starting in 1942. It was the first appearance in a string of ten consecutive appearances by the Canadiens.
Title: 2021 Stanley Cup playoffs
Content:  This was the fourth playoff meeting between these two teams with Tampa Bay winning two of the three previous series. They last met in the 2015 Eastern Conference Second Round, which Tampa Bay won in six games. This was Tampa Bay's second consecutive Finals appearance and fourth overall. They won last year's Finals against the Dallas Stars in six games. Montreal appeared in their thirty-fifth Stanley Cup Finals. They are the most recent Canadian-based team to win the Stanley Cup, doing so in 1993 (their most recent Finals appearance) against the Los Angeles Kings, winning in five games. They were also the first Canadian team since the Vancouver Canucks in 2011 to reach the Finals. This was the first Finals since 2009 to feature two teams in the same time zone. These teams did not play each other during this year's regular season.
Title: 2010–11 Toronto Maple Leafs season
Content:  The Maple Leafs attempted to make the playoffs for the first time since the 2003–04 season. They were officially eliminated from playoff contention on April 5, 2011, when the Buffalo Sabres won against the Tampa Bay Lightning 4–2, shortly before Toronto lost to the Washington Capitals in a shoot-out. The Leafs hold the longest active Stanley Cup Finals drought streak not having competed in the finals since the 1966–67 NHL season. They also are tied with the Los Angeles Kings and the St. Louis Blues for the longest drought without a Stanley Cup until the Kings won the Stanley Cup in 2012, followed by the Blues in 2019. In the 2009–10 season, the Chicago Blackhawks ended the longest drought without winning a Stanley Cup at that time, not having won the Stanley Cup since the 1960–61 season.
Title: 1949 Stanley Cup Finals
Content:  The Maple Leafs became the first NHL team to win the Stanley Cup in three straight seasons. The Leafs also won nine straight Finals games (beating Montreal in game six of the Finals, plus consecutive sweeps of the Wings in  and this year). By defeating Detroit, Toronto won the Stanley Cup with a losing regular-season record. The only other team to win the Stanley Cup after finishing the regular season with a losing record was the Chicago Black Hawks, who qualified for the 1938 playoffs with a losing record and ultimately beat Toronto in the Cup Finals three games to one.
Title: 1945–46 Toronto Maple Leafs season
Content:  The 1945–46 Toronto Maple Leafs season was the 29th season of play of the Toronto NHL franchise. Although the club was the defending Stanley Cup champion, the team's play declined and the club finished in fifth, missing the playoffs.

Question: when was the last time the toronto maple leafs were in the stanley cup finals?
Answer: 1967 Stanley Cup Finals.