Germany guard Dennis Schroder (17) shoots for goal as Latvia forward Andrejs Gra ulis (24) attempts to block during the Basketball World Cup quarterfinal between Germany and Latvia in Manila, Philippines, Wednesday, Sept. 6, 2023. Photo: AP
Debutants Latvia had already beaten defending champions Spain and Tokyo Olympics silver-medallists France on their way to the quarter-finals.
But unbeaten Germany stopped them in their tracks with a hard-fought win in Manila and will now take on the Americans on Friday.
Latvia jumped out to a 10-point lead after only five minutes but Germany pegged them back and led by two at half-time.
The lead repeatedly changed hands but eventually Germany began to press their advantage and they just about held on.
Franz Wagner was Germany's top scorer with 16 points, followed by Andreas Obst (13) and Moritz Wagner (12).
But playmaker Dennis Schroder had a day to forget, scoring only four of his 26 field-goal attempts.
Arturs Zagars was Latvia's top scorer with 24 points, followed by Davis Bertans with 20, which included six three-pointers.
Latvia's loss eliminated them from the race for one of the two Paris Olympic berths available for European teams at the World Cup.
In the day's second quarter-final, Slovenia face Canada with a semi-final matchup against Serbia up for grabs.
(For more sports news and updates, follow Ahram Online Sports on Twitter at @AO_Sports and on Facebook at AhramOnlineSports.)