ATLANTA -- Al Horford passed on the shot earlier in the game.
When it opened up again, he let it fly.
Horford knocked down a 20-foot jumper with 4.2 seconds left and the Hawks rallied from a 17-point deficit in the second half, stunning the Dallas Mavericks 88-87 on Friday night.
"I had that shot before, and I didn't take it," Horford said. "Shelvin (Mack, a Hawks guard) kept telling me, `That's your shot. You need to shoot it.' When the opportunity came again, I knocked it down."
Jeff Teague scored 25 points for the Hawks, while Horford finished with 17 points and 12 rebounds.
The Mavericks were up 70-55 when point guard Jose Calderon went out late in the third quarter with an injured right ankle. X-rays were negative but he did not return.
Without Calderon running the offense, Dallas totally bogged down. Rookie guard Shane Larkin had a miserable night, going 0 for 4 from the field and turning it over four times. The Mavericks hit just 38 percent, with Vince Carter missing badly on the final shot of the game.
"Calderon is a big part of what they do," said Hawks forward Paul Millsap, who hit a huge 3-pointer over Dirk Nowitzki with 1:16 remaining to give the Hawks a chance. "Without him on the court, it kind of helped us out."
Atlanta snapped a three-game losing streak and climbed back above .500 at 9-8.
The Mavericks made 3 of 19 shots in the final quarter, their last field goal coming on Shawn Marion's jumper with 5:05 remaining for an 85-77 lead. Dallas managed only two more points the rest of the way, a pair of free throws by DeJuan Blair with 3:27 left.
Atlanta scored the final seven points, capped by Horford's jumper after the defense sagged away from him near the top of the key.
"Jeff tried to attack and they kind of backed off," Horford said. "I just took what the defense gave me."
Calderon and Nowitzki led the Mavericks with 16 points apiece, while Marion chipped in with 15.
It was a brutal loss for Dallas, which dipped to 2-6 on the road.
"They play good in their house," Marion said. "But still, we should have won this game."
Calderon wasn't even sure when he injured his ankle, saying it happened sometime in the first half and kept getting worse. Calderon hopes to return when the Mavericks host Minnesota on Saturday night.
"I don't know if somebody hit me or I hit the floor," Calderon said. "That's why it's kind of weird.
Teague carried much of the load for the Hawks, bouncing back from a four-point effort in a loss to Houston. He kept getting to the foul line, doled out six assists and didn't turn it over until he lost the ball out of bounds with about 2½ minutes remaining.
Lou Williams made his first start for the Hawks since coming back from knee surgery that kept him out much of last season and the first few weeks of this season. He scored a season-high 12 points.
The Hawks jumped out to a 23-18 lead in the first quarter, but the Mavericks scored the final 10 points of the period to lead at the break. Dallas got much of its production beyond the arc, making 6 of 7 from 3-point range. Calderon went 3 for 3, Marion hit a pair of long-range jumpers and Carter chipped in with one.
Nowitzki missed all three of his shots and was held scoreless in the opening quarter. But he warmed up in the second, knocking down Dallas' first six points for a 16-0 run that extended the lead to 34-23.
The Mavericks maintained a double-digit edge through most of the second and third quarters, going to the final period up 75-64.
Their biggest lead was 66-49 midway through the third.
Kyle Korver skipped his second straight game with bruised ribs, again delaying his quest to set an NBA record for consecutive games with a 3-point basket. He remains at 88 in a row, one shy of the mark set by Dana Barrow from Dec. 23, 1994-Jan. 10, 1996, with Philadelphia and Boston. Korver was receiving treatment during the game, but the Hawks weren't sure if he'd be on a road trip to Washington and San Antonio. ... Dallas C-F Brandan Wright (fractured left shoulder) is getting closer to practicing. "Hopefully it doesn't flare up," Wright said before the game. "We'll keep pushing it each and every day." ... Former Hawks G Devin Harris is recovering from left foot surgery and didn't get a chance to play against his old team.
Get to know the NBA's next crop of superstars.
Isaiah Thomas says his pitch to free-agent-to-be Kevin Durant would be about the tradition of the Celtics and the great fans in Boston.
If LeBron James wants his now customary one-year contract plus a player option with the Cavaliers he stands to leave $3 million on the table compared to the one-year deal he could get elsewhere.