DALLAS (AP) Luka Doncic scored 10 of his game-high 25 points in the fourth quarter as the Dallas Mavericks beat the San Antonio Spurs 104-99 on Thursday night, after some wild swings in the first half before turning into a back-and-forth game.

The Mavericks finally went ahead to stay on Doncic's alley-oop pass to Dwight Powell for the finish that made it 86-84 with 8:33 left. They stretched that to an 11-point gap by the time Doncic hit a step-back 3-pointer about 3 1/2 minutes later.

''I was way more aggressive in the fourth than I was in the first three quarters,'' Doncic said. ''That's what I've gotta do the whole game.''

Jalen Brunson added 19 points for the Mavs, while Dorian Finney-Smith had 14 and Maxi Kleber 12. They all had at least three 3-pointers, the same as Doncic. Kleber also had 10 rebounds and six blocked shots.

Dejounte Murray (23 points and 10 rebounds) and Jakob Poeltl (14 points and 13 rebounds) had double-doubles for the Spurs. Murray also had a game-high eight assists. Bryn Forbes had 15 points on five 3s. Lonnie Walker IV, starting in place of the injured Doug McDermott, scored 14.

An early 20-point lead wasn't enough for the Spurs, an inexperienced group of players that coach Gregg Popovich said continues to compete night after night.

''But the experience and the mistakes we might make in shot selection or transition defense, or whatever, it adds up, because we're not that potent an offensive team where we can just score at will,'' Popovich said. ''We have to be more perfect in real fundamental ways because we're not going to have that guy to give the ball to and say go score now. That's not who we are. We've got to do everything together, and they're trying their best to do that and they'll get better at it, and just got to stick with it.''

San Antonio jumped out to a 25-5 lead to start the game, and the Mavericks didn't have a field goal until Doncic scored with 6:33 left in the first quarter to get within 18-3.

''We were just a little slow to start the game, and it's been like that since the season started,'' Mavericks coach Jason Kidd said.

Doncic was a bit more harsh in his assessment.

''It was just a bad start, a really bad one,'' he said. ''No energy, everyone was sloppy. It was terrible.''

After the scorching start for the Spurs, Dallas went on a 31-4 run to take a 36-29 lead. Coming off the bench, Brunson made three 3-pointers and Kleber added two in that span

''Just the pace, I thought they were moving a little bit faster than that first group,'' Kidd said. ''That bench got us going, and then everybody else started to participate there in the second half.''

Kleber had a bigger role with Kristaps Porzingis out because of as swollen right knee.

''Maxi was everywhere,'' Kidd said. ''He was big for us behind the line and also defensively with the blocks and just trying to change shots and rebound. We were down a guy, and he stepped up.''

The Spurs closed the first half with a 20-11 spurt, taking a 49-47 halftime lead when Forbes made his fourth 3-pointer to beat the buzzer.

CLOSE CALLS

Seventeen of the last 21 games between the intrastate rivals have been decided by seven or fewer points. The Spurs and Mavericks will be seeing a lot of each other early this season. They will play three times in a span of 12 days, and their entire season series will be over before Christmas.

INJURY REPORT

Spurs: Popovich said McDermott (swollen right knee) is expected back after San Antonio's road trip, and could return Nov. 3 at home against Dallas.

Mavericks: Porzingis will be evaluated Friday, according to Kidd. Trey Burke also sat out. Kidd read from notes, ''Trey's not sick. There's a certain amount of protocols that have to take place within a certain time. It didn't happen. He will travel with the team and be available.''

UP NEXT

Spurs: At Milwaukee on Saturday in the second game of a three-game trip.

Mavericks: Play a back-to-back game on Friday at Denver before returning home.

---

More AP NBA: https://apnews.com/NBA and https://twitter.com/AP-Sports

Copyright 2021 STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.