Dirk Nowitzki scored the go-ahead three pointer with 2.9 seconds remaining to lift the Dallas Mavericks to a 100-98 victory over the Chicago Bulls on Saturday.
Germany's Nowitzki scored a season-high 35 points on 14-of-17 shooting from the field for the Mavericks, who closed the match on a 15-1 run.
Nowitzki, who shot five-of-six from beyond the arc, scored Dallas' final eight points.
"We came back from double-digit deficits three times," Mavericks coach Rick Carlisle said. "This is a special group of guys even though our year has been a rough year. We're going to keep battling and I believe in them."
Veteran Vince Carter had 17 points off the bench for the Mavericks, who won their fourth game in their last five to remain in contention for the final playoff spot in the Western Conference.
Brandan Wright also finished with 17 points and 13 rebounds in the win.
Carlos Boozer had 25 points and 11 rebounds, while Luol Deng and Nate Robinson scored 25 points apiece for the Bulls, who had their modest three game win streak halted.
There were 16 lead changes and six ties in a first half that ended with Chicago ahead by three, 56-53.
Deng and Robinson combined on a 22-10 run to open the fourth that gave the Bulls a 12-point lead with just over four minutes left.
But the Mavs fought back and Nowitzki drained a fadeaway jumper from the baseline to cut the margin to 98-97 with 27 seconds left in the fourth.
Jimmy Butler then missed two free throws with 16 seconds remaining and Nowitzki hit a three pointer from the top of the key with just under three seconds remaining to give Dallas the lead.
Robinson's three point attempt from the right side missed and the Mavericks celebrated the victory.