The Kings cut a 12-point deficit to 92-89 with 4:53 to play. With about two seconds left on the 24-second clock, Doncic hit the 3 from the rim of the center-court logo after dribbling the ball off a defender's foot to move him back behind the midcourt line.
''I'm confident in all my 3s,'' said Doncic, who missed his other six attempts from behind the line. ''That shot goes in, but then all my normal shots can't go in. I've got to work on those normal shots.''
''That was a big-time shot,'' Mavericks coach Jason Kidd said. ''I think we all know he has that type of range.''
''I'd take our odds with him shooting a 40-footer, and he made it,'' Kings coach Luke Walton said. ''So, give him credit. It was actually a good defensive possession for us up to that point.''
Tim Hardaway Jr. added 16 points to help the Mavericks rebound from a 31-point loss in Denver on Friday night. Dallas lost three meetings with Sacramento last season.
''They took care of business every single time they played us last year,'' Hardaway said. ''We just wanted to do a great job of putting out foot down.''
Doncic shot 10 for 21 from the floor and had eight rebounds and 10 assists.
The Mavericks were 12 for 37 behind the arc, and the Kings 7 for 36.
Maxi Kleber made his first start of the season for Dallas in place of Kristaps Porzingis, who missed his third straight game with lower back tightness. But Kleber - who had seven points and five rebounds in seven minutes, strained his back late in the first quarter and didn't return.
RARE FAST START FOR DALLAS
The Mavericks broke to a 22-7 lead and led 31-22 after one period. That was quite a contrast to the team that never led after the opening period in its first five games and was outscored by a collective 31 points in those games.
Walton said his team came out soft. He turned to a four-guard unit with reserve big man Tristan Thompson, who scored eight points in the first quarter and finished with 13 points and five rebounds.
''Tristan with the rest of that second unit came in and at least got us to back to where we'd been playing (in previous games),'' Walton said, ''which is a physical, fighting, scrapping style of basketball''.
With Porzingis out again and Kleber sidelined after the first quarter, Ntilikina, Bullock and Sterling Brown were called upon to bolster Dallas' inside play.
''All the smalls got excited,'' Kidd said. ''I understand Sacramento's not a big team. Everybody's going to have to participate in helping on our interior, rebounding. We don't want to play like that all the time but we understand that sometimes injuries happen.''
The Kings came in averaging 111 points per game, 11th in the NBA, and were held to their season low. . The Mavericks outscored the Kings 13-1 on fast-break points. . Doncic picked up his first technical foul of the season midway through the third quarter, with Tyrese Halliburton hitting the free throw and Barnes following with a dunk that gave Sacramento a 60-59 lead, its only lead of the game. . The Kings sought their first 4-0 road start since moving to Sacramento in 1985.
Kings: At Utah on Tuesday night.
Mavericks: Host Miami on Tuesday night.
More AP NBA: https://apnews.com/tag/NBA and https://twitter.com/AP-Sports