The win was the 600th for Dallas coach Rick Carlisle, and snapped a four-game losing streak. Dallas was down by 16 in the third quarter, down nine with about 3 minutes to go in the third and then turned the game completely around.
Dirk Nowitzki and Monta Ellis each scored 12 points for the Mavericks, and Tyson Chandler had 11 points and 13 rebounds.
Dallas scored 25 of the first 27 points in the fourth quarter, and outscored Miami 60-27 in the second half.
Hassan Whiteside had 16 points and 24 rebounds for Miami. James Ennis scored 15, Chris Bosh had 12 and Mario Chalmers scored 10 for the Heat.
Whiteside was dominant early with 14 rebounds in the first 8 minutes alone, and the Heat led 45-33 at the half. When Whiteside went out late in the third, Miami led 60-51.
When he returned, Miami was down 72-60, having been outscored 21-0 to that point -- and the run just kept going.
Dallas won despite shooting just 18 percent in the first quarter.
Mavericks: F Chandler Parsons missed the game because of an illness. It forced the Mavs into using their 10th lineup of the season. ... Chandler was playing against Miami for the 49th time, including playoffs. He's faced no opponent more. ... Dallas went from down 16 to up 26 at one point in the second half, a 42-point swing in about 20 minutes.
Heat: All-Star G Dwyane Wade will not accompany Miami on at least the first part of its weeklong road trip that starts Sunday in Boston, staying home to continue rehabbing his strained hamstring. ... The Heat were again without F Luol Deng (calf), and without him and Wade went with their 19th lineup in 46 games. ... G Tyler Johnson made his home debut, getting three assists in the second quarter.
Retired NBA player Shane Battier, who ended his career with the Heat and won two championships in Miami, was working again in the arena on Friday night. Battier, who has kept his South Florida home, got a loud ovation from early arriving fans when he walked onto the court about 40 minutes before tip-off.
Mavericks: At Orlando on Saturday.
Heat: At Boston on Sunday.