Canada's men's basketball team has clinched its first spot in the FIBA World Cup in almost a decade.

Kyle Wiltjer had a game-high 25 points and seven rebounds to lead Canada to a 94-67 rout of Brazil on Monday.

The win improved Canada's record to 8-2 with just two games remaining in the second round of qualifying, guaranteeing the team a top-three finish in its group.

"It's been a long time since this country has had a chance to be back on the world stage," said veteran centre Joel Anthony. "I remember when we qualified the last time and just a really proud feeling to be able to be back and see us get back there.

"To be able to be a part of it is extremely special to me. I'm just really happy, grateful, thankful and excited that we're able to be back where we belong."

The 36-year-old Anthony had five points and six rebounds.

Phil Scrubb added 15 points and six assists and brother Thomas Scrubb had 14 points on 6-of-7 shooting off the bench.

Watch highlights from Canada's victory:

Kyle Wiltjer led the field with 25 points in Canada's 94-67 win over Brazil on Monday in World Cup qualifying. 1:21

Marquinhos Sousa led Brazil with 17 points.

The Canadians didn't have the use of any of their NBA players for this round of qualifying, and the majority of players had come half way around the world from various squads in Europe.

Canada's thrilling win also came after a gruelling travel schedule. Flight delays turned what should have been a nine-hour trip from Orlando to Caracas, Venezuela into a 25-hour trek. Canada lost to Venezuela 84-76 hours after landing.

The Canadians' second leg to Sao Paolo took 18 hours.

"It feels amazing to travel all this way and accomplish our goal," said Wiltjer.

FIBA changed its World Cup qualifying procedure to fall more in line with soccer. But the difference soccer has "international dates" where the top leagues suspend play to allow their world's best players to join their countries in qualifying.

Hey Canada 🇨🇦! Make sure those passports don't expire before August 2019... We're ALL taking a trip to China! <a href="https://twitter.com/hashtag/WeAreTeamCanada?src=hash&ref_src=twsrc%5Etfw">#WeAreTeamCanada</a> <a href="https://twitter.com/hashtag/FIBAWC?src=hash&ref_src=twsrc%5Etfw">#FIBAWC</a> <a href="https://twitter.com/hashtag/ThisIsMyHouse?src=hash&ref_src=twsrc%5Etfw">#ThisIsMyHouse</a> <a href="https://t.co/Hb31WkgRSF">pic.twitter.com/Hb31WkgRSF</a> —@CanBball

So, assembling rosters has been a tough task for Canada's basketball coaches. They've used 35 players so far. The United States, with 36, is the only team in the Americas that has used more.

"A great and historic win for our country," said coach Roy Rana. "Character wins and I could not be more proud of all the guys who helped us through the windows to date as we now advance to the FIBA Basketball World Cup 2019 in China."

The three highest-placed teams from each group, and the top fourth-placed team between Group E and Group F qualify for the World Cup in China, Aug. 31-Sept. 15.

Canada will play its final two contests at Mile One Centre in St. John's, N.L., on Feb. 21 versus Chile and Feb. 24 against Venezuela.

Canada hasn't appeared at the World Cup since the 2010 tournament in Turkey, where they went 0-5 to finish 22nd of 24 teams.