Portugal defeated the Hungarian national team 66-57 on Thursday night to earn their ticket to the EuroBasket.
In beating the Hungarians for the second time in the Additional Qualifying Round, the Portuguese improved to 2-1.
The win also sealed a spot in the EuroBasket for Finland (2-0), who had won their two games against the Hungarians and Portugal.
The Hungarians (0-3) are already eliminated and will have one game left against Finland.
Hungary started the game with an 8-5 run four minutes into the contest and by the end of the opening quarter, San Antonio Spurs draftee Adam Hanga made one of two shots from the foul line as they trailed 20-19.
Portugal, under new coach Mario Palma took complete control of the game in the second quarter using their defense, limiting the Hungarians to just three points for the first eight minutes of the quarter.
Hungary was outscored 25-9 in the second period, as Portugal took a 45-28 lead at halftime.
In the third quarter, Hungary stormed back in the game. Hanga’s 3-pointer with 56 seconds left in the third quarter cut the deficit to 52-45.
However, Portugal got a free throw from Carlos Andrade and a layup from Costa to extend the lead to 55-45 entering the fourth quarter.
Both teams were sluggish in the final period and Hungary never got closer than nine points.
Joao Santos had 16 points and seven rebounds to lead Portugal, Costa added 10 points.
Akos Keller led the Hungarians with 12 points, while Hanga had nine points, seven rebounds, five assists and one steal in 36 minutes of play in a losing effort.