DALLAS -- The Dallas Mavericks withstood the Golden State Warriors' late scoring flurry and long offensive dry spell to pull out the win.
Klay Thompson, the Warriors' shooting guard, caught fire with the Mavs leading by 17 points with less than five minutes remaining. His 3-pointer started a 13-0 Golden State run in which he scored eight points.
Thompson, who scored 20 points but was only 5-of-16 from the field, cooled off once the Warriors slashed the Mavs' lead to four. He missed long jumpers on consecutive possessions at that point.
Golden State point guard Stephen Curry scored a game-high 29 points, including 13 in the fourth quarter, and was one of three Warriors to score at least 20. Power forward David Lee had 20. No other Warriors player finished in double figures.
How it happened: The Mavs overcame by far the worst shooting outing by Ellis this season. Ellis scored only four points -- 14 shy of his previous season low -- on 2-of-16 shooting. But Ellis had 10 assists, including the clutch dish to Dalembert.
Dirk Nowitzki led the Mavs with 22 points, capped by a pretty turnaround jumper off the dribble that was basically the dagger. He was one of six players to score in double figures for the Mavs, who had 27 assists and a season-low six turnovers.
What it means: The Mavs snapped a two-game losing streak and improved to 10-6 overall, including 8-1 at home. The Warriors (9-7) were playing the second game of a back-to-back, but beating a team expected to be a contender in the Western Conference qualifies as the most impressive win of the season for the Mavs.
Play of the game: Rookie point guard Shane Larkin's first bucket of the game was a big one. The lightning-quick Larkin dribbled about 70 feet in the final 3.9 seconds of the third quarter, launching a runner with a foot on the 3-point line that just beat the buzzer. The high-arching shot splashed through the net to stretch the Mavs' lead to 11 entering the fourth quarter.
Stat of the night: Ellis' streak of games with at least 18 points to begin his Mavs career was snapped at 15. Before Ellis, no player in franchise history had scored at least 18 points in more than his first two games with the Mavs. Ellis had never scored at least 18 points in more than 13 consecutive games before joining the Mavs.