BOSTON (AP) — Rajon Rondo had a chance to win it in regulation and Derek Fisher got enough of the shot to keep it from travelling more than a few feet.
Then Paul Pierce's shot at a game-winner at the end of the first overtime was blocked by Dahntay Jones.
There was still plenty of time for Pierce and Rondo to come through.
Pierce made a 3-pointer at the start of the second extra period to give Boston the lead for good, and the Celtics held on for a 117-115 victory over the Dallas Mavericks on Wednesday night.
Pierce scored 34 points in all, and Rondo had 16 points, 15 assists and nine rebounds in a career-high 52 minutes, 30 seconds.
"We ask him to do a lot," Pierce said of Rondo. "We ask him to push it up, score and rebound. We ask him to do a lot because he can do it."
Pierce had four points in the first overtime — putting him over 23,000 points in his career — and eight in the second. Rondo, who played the entire first OT and all but 2 seconds of the second, had the only other basket in the second overtime before Courtney Lee made a pair of free throws with 6 seconds to play.
"I thought the biggest mistake I made was leaving Rondo in that long," Celtics coach Doc Rivers said. "I thought that had an impact on the speed of the game."
Kevin Garnett added 16 points for Boston, and Jason Terry had 10 points against the team he played with for eight seasons.
O.J. Mayo scored 24 points for Dallas, and Shawn Marion had 16 points, 11 rebounds and seven assists. Mayo, who played 51:55, also had nine of the Mavericks' 28 turnovers.
"I wasn't tired at all. You just can't turn the ball over. Look at the stats, man: nine turnovers out of 28," he said. "We had plenty of opportunities to take control of that game and win. We've got to be better in that area. We just can't turn the ball over."
Boston led by 14 in the third quarter and eight after the first basket in the fourth before Dallas chipped away at the deficit and tied it at 92 on Darren Collison's drive to the basket. After Rondo made a jumper, Fisher hit a 3-pointer with 1:47 left in the fourth to give the Mavericks their first lead of the game.