Purdue was out to ensure its run of dominance against in-state foe Indiana lived on for another day. Indiana, though, had other ideas.

The Hoosiers blew a 37-28 halftime lead, but a late 3-pointer by Rob Phinisee with 18 seconds left and a pair of free throws with 6 seconds to go lifted Mike Woodson’s team to a 68-65 win at Assembly Hall in Bloomington on Thursday. It was the first win for the Hoosiers in the series since Feb. 20, 2016—a 77-73 victory also at Assembly Hall—as they end a 9-game losing streak to the Boilermakers.

Indiana improved to 14-4, 5-3 in the Big Ten. Purdue fell to 15-3, 4-3 in B1G play.

Purdue led 24-21 with 6:23 remaining in the 1st half before Indiana surged to a 16-4 run to take a 9-point lead into the locker room. But Purdue fought its way back into the game and tied it at 63 with 3 minutes, 38 seconds to go in the 2nd half. At one point, the Hoosiers went 1-of-9 from the floor.

And the game remained level until Mason Gillis broke the deadlock for the Boilermakers with 71 seconds left in regulation. With under 20 seconds to go, though, Phinisee, who had already missed a possible go-ahead 3, hit his next attempt to put the Hoosiers up for good. A pair of Trayce Jackson-Davis field goals set the game’s final margin as a Jaden Ivey 3-pointer that would have forced overtime hit off the backboard and rimmed out.

Phinisee finished the evening with 20 points and was 4-of-7 from long range. Ivey led all scorers with 21 points on 7-of-16 shooting and a 5-of-7 night from the free-throw line.

Purdue next hosts Northwestern in West Lafayette on Saturday. Indiana welcomes Michigan to Bloomington on Sunday.