Jared Dudley scored 18 and Marcin Gortat 94, on Thursday.
Grant Hill added 15, Steve Nash finished with 11 points and 11 assists and Hakim Warrick scored nine off the bench for the Suns, who trailed by as many as 12 in the third quarter. They have won six of their last eight games.
Dirk Nowitzki and Vince Carter had 18 points apiece to pace the Mavericks, who had won their previous eight against Phoenix. They scored seven straight to close the game, but Rodrigue Beaubois missed two potential tying shots in the final seconds.