they did it,” Freeman said. “Mookie’s been hitting the ball extremely well. It was just a good overall day for us, a good baseball game.”

The Dodgers (63-30) have gone 26-7 since they were swept in a three-game June series in San Francisco. Their seven consecutive victories, wrapped around the All-Star Game, expanded their lead on the second-place Padres in the National League West to 101/2 games. The Giants (48-46) are a distant third, 151/2 games out of first.

The key?

“It’s always been pitching,” Freeman said. “Our pitching has been amazing all season. We’ve just been hitting a lot better as of late. Scoring a lot of runs, letting them settle in, getting deeper into ballgames.”

On Saturday, left-hander Julio Urías (9-6) turned up the heat over six shutout innings. He allowed two hits and issued a walk to Austin Slater, but the rest of the Giants lineup went 0 for 18.

Urías recorded five strikeouts and touched 96 mph with his four-seam fastball for only the third time in 19 starts.

“I think I found a little something in the last couple bullpens,” Urías said through an interpreter. “Especially in the last two starts — just some adjustments we made. I’ve been able to make those adjustments and every fifth day come out and pitch the way I have.”

Betts led off the game with a 12-pitch at-bat against former Dodger Alex Wood (6-8). He crushed the 11th pitch a few feet wide of the left field foul pole before dumping a single into right field.

The Dodgers couldn’t cash in the run. In his next at-bat, Betts did the job himself. His 22nd home run of the season came on a 3-and-2 count and gave the Dodgers a 1-0 lead.

With the hit, Betts also became the 17th active player with 200 career home runs. He downplayed the milestone with traditional humility, saying it meant “nothing.” But it stands as a testament to his longevity.

Betts needed only 17 days off after cracking a rib behind his right pectoral muscle. Since returning, he has five home runs in 16 games.

“The training staff did an amazing job getting me back out there quick,” Betts said. “Our hitting guys are, I think, the best in the big leagues. They keep me going. I couldn’t ask for better teammates keeping me going. I know I’ve had some ups and some downs, but they believe in me, so I think that’s all I can really ask for. I know I’m going to play every day and do my best.”

Turner hit his 15th home run — also on a 3-and-2 count — on the very next at-bat.

Urías made the 2-0 lead stand up. He induced only seven swings and misses among his 91 pitches, but allowed relatively little hard contact. The final batter Urías faced, David Villar, looked at three pitches in the strike zone for the final out of the sixth inning.

Cody Bellinger singled and scored on a triple by Gavin Lux in the sixth inning. Freeman’s 15th home run of the season, against reliever John Brebbia in the seventh inning, gave the Dodgers a 4-0 lead.

Closer Craig Kimbrel had pitched on back-to-back nights to begin the four-game series, so right-hander Reyes Moronta and left-hander David Price tag-teamed the ninth inning. The Giants scored twice, but it was too little, too late.

Price was credited with his first save of the season when he caught Slater looking at a backdoor sinker for strike three to end the game.