Troy Terry scored the lone shootout goal, Tyler Parsons stopped all five shots he faced in the tiebreaker and the United States outlasted Canada 5-4 on Thursday night to win the world junior hockey title.

The game was decided in the five-round shootout after a 20-minute overtime period.

On Wednesday in the semi-finals, Terry scored on all three of his shootout attempts to give the United States a 4-3 victory over Russia. He beat the goalies between the legs on all four attempts in the two games.

“Before the shootout, I was thinking about trying something different,” Terry said. “As I came down, I decided I just had to try to go five-hole.”

The University of Denver forward and Anaheim draft pick beat Carter Hart in the fourth round of the shootout. Parsons then stopped Anthony Cirelli’s attempt, American Jeremy Bracco missed a chance to end it in the top of fifth round, and Nicholas Roy mishandled the puck on Canada’s last attempt.

Facebook Twitter Pinterest Tyler Parsons made 46 saves as the US won a thrilling final over Canada.

“He’s unbelievable” Boston University forward Clayton Keller said about Terry. “He’s a guy that doesn’t get nervous. He’s always calm and confident and he just has that ice in his veins. He came up clutch for us again, and (Parsons) made that big save at the end.”

Parsons made 46 saves. The Michigan native and Calgary draft pick plays for London in Ontario Hockey League.

“It was a great atmosphere in the building,” Parsons said. “It gave me chills. It’s unbelievable to win this for your country.”

The Americans won their fourth title and first since 2013. They won all seven of their games in the tournament, also beating Canada 3-1 on Saturday in the group finale.

“When we got together in Michigan for our camp this summer, there was something special with these guys,” said US coach Bob Motzko of St Cloud State. “This team had great camaraderie, tremendous heart and always battled. This is a special group who will forever walk together.”

The teams met for the fourth time in the championship game, with the Americans also winning in 2004 and 2010 and Canada in 1997. Canada won the last of its record 16 titles in 2015.

“It’s hard for me right now,” said Canadian defenseman Thomas Chabot, the tournament MVP. “I lost one of the biggest games of my life.”

The Americans overcame two two-goal deficits to force overtime.

“It was such an up-and-down game,” Terry said. “We were down two goals twice. I think when we were down 2-0 and came back to tie it we got some confidence because it sucked to go down two goals right away. But, we knew as a team that no matter how we played, we had the confidence to get back into the game.”

Bouyed by the first near-sellout crowd at the more than 21,000-seat Bell Centre, Chabot and Jeremy Lauzon opened the scoring for Canada in the first period.

Boston University teammates Charlie McAvoy and Kieffer Bellows countered for the US in the second.

Canada took a 4-2 lead in the third on goals by Roy and Mathieu Joseph, but Bellows cut it to one and Boston College’s Colin White tied it with nearly 13 minutes left.

Earlier, Russia beat Sweden 2-1 in overtime in the bronze-medal game.