BERLIN -- Slovenia roared back from a 23-point deficit, and it looked as if it was well on its way to a berth in the EuroBasket semifinals.
Poland had other ideas -- and in an absolute shocker, EuroBasket will have a new champion.
Mateusz Ponitka had 26 points, 16 rebounds and 10 assists, and Poland beat Slovenia 90-87 to move into the semifinals of the European championships for the first time since 1971.
Vlatko Cancar led Slovenia with 21 points, and Goran Dragic scored 17.
Luka Doncic was held to 14 points on 5-of-15 shooting, though he added 11 rebounds and seven assists.
Poland led by 23 late in the second quarter and carried a 58-39 lead into halftime, but Slovenia got within one with a 24-6 run in the third quarter.
Dragic scored to start the fourth and put Slovenia on top, and the lead was 73-68 on a jumper by Klemen Prepelic with 6:58 left.
Poland outscored Slovenia 21-7 over the next six minutes and held on in the final seconds.
A.J. Slaughter and Michal Sokolowski each scored 16 for Poland, which got 14 from Jaroslaw Zyskowski and 11 from Aleksander Balcerowski.
FRANCE 93, ITALY 85: France pulled off a wild rally at the end of regulation, then carried that momentum into a spot in the EuroBasket semifinals.
Thomas Heurtel scored 20 points, Rudy Gobert had 19 points and 14 rebounds, and France found a way to get past Italy 93-85 in a quarterfinal game on Wednesday.
France was down by seven with 1:59 left in regulation, and that was when it started on what became a 25-10 run to finish the contest.
It was France's second consecutive fourth-quarter rally and overtime win, after needing the same formula to get past Turkey in the round of 16 on Saturday.
"I don't really believe in luck," Gobert said. "Tonight, we could have given up, once again, but we got the baskets we needed."
Next up for France is Poland on Friday for a berth in the title game. The other half of the semifinal bracket was set Tuesday: Germany will play Spain, also on Friday.
Gobert started the game-ending burst with a dunk to get his team within 75-70.
Italy had a chance to potentially seal the game with 16 seconds left, up by two, but Simone Fontecchio missed a pair of free throws. It was another eerie resemblance to Saturday, when Cedi Osman, with Turkey up by two, missed two free throws with 12.2 seconds left to extend France's hopes.
Heurtel's layup tied the game with 5.2 seconds left in regulation. France trailed only once in overtime, for just 23 seconds, and Evan Fournier's floater with 3:29 left put his team ahead for good.
Fournier scored 17 for France, which got 15 from Guerschon Yabusele and 13 from Timothe Luwawu-Cabarrot.
"Congratulations to France," Italy coach Gianmarco Pozzecco said. "They never gave up."
Fontecchio and Marco Spissu each had 21 points for Italy, which was seeking its first trip to the EuroBasket semifinals since winning bronze in 2003.
Luigi Datome scored 12 and Nicolo Melli added 10 for Italy, which trailed by as many as 11 in the early going but outscored France 31-18 in the third quarter and led by as many as eight early in the fourth.
"What can I say? Very painful, of course," Datome said. "Very, very painful. But I'm so proud of my teammates."