Turkey recovered quickly from yesterday's loss to Poland with a 74-63 win over Latvia in the crowded Group C.
The win lifts Turkey to a 2-1 record while Latvia will settle for a single win and two losses.
Turkey have qualified to the next round and Latvia will hope for Poland to lose later in the day against Croatia to avoid the 13-16 games.
Enes Kanter led Turkey with 20 points and 12 rebounds, Safak Edge added 12 with four assists and Murat Yuksel contributed 11 points and eight boards.
Edmunds Dukulis collected a double-double of 17 points and ten rebounds while Andris Misters scored 12 for Latvia.
The Turks suffered from a bad day from the line, making only 13 out of 27 attempts, but used a good start and a good finish to lock the win.
Metin Salkin and Edge connected seven points in a row late in the first quarter to give Turkey a 26-18 lead after ten minutes.
The run continued in the second when a three ball by Serkan Avci made it 15 unanswered points, before Latvia woke up.
Dukulis and Davis Bertans showed character and managed to bring Latvia only six points shy at the break, 39-33.
Misters joined the party as they completed the come back to seal 14 points in a row and give Latvia the lead, but Turkey was there to speak the last words.
Kanter hit twice from the line to cap an 8-0 run and later added four points in a row to lift Turkey to a 12 point margin with less than four minutes on the clock.
Latvia didn't have the energy to recover again and saw Kanter's dunk in the closing seconds promise the win for Turkey.