SAN FRANCISCO >> Max Muncy can really rake by the ocean.

Muncy drove in seven runs with two home runs Monday night as the Dodgers snapped their three-game losing streak in resounding fashion, beating the San Francisco Giants, 9-1.

Muncy came into the game batting .121 to start the season but hit his 22nd and 23rd career home runs against the Giants, the most he has against any opponent. Nineteen of those have come since 2020, the most home runs by any player against a single National League opponent in that time.

Muncy’s 4-for-33 start with four times as many strikeouts (16) as hits conjured painful memories of last season’s struggles. Those faded in the misty fog rolling in off the Bay.

Mookie Betts led off the game with a home run, his 37th career leadoff home run (17th as a Dodger).

Two innings later, Betts singled with one out and went to third when Freddie Freeman beat out an infield single. Will Smith struck out, bringing Muncy up with two outs and just one hit in his previous 19 plate appearances.

Muncy got a 2-and-1 slider out over the plate from Logan Webb and crushed it, sending it 405 feet toward a large body of water for a three-run home run.

Webb was gone by the seventh inning when Betts drove in his second run of the night with his third hit, an RBI single, and the Dodgers loaded the bases — again with two outs — for Muncy. This time, Muncy jumped on a first-pitch fastball from Giants reliever Sean Hjelle and clubbed it over the wall in left field for a grand slam.

Muncy is the third player in Dodgers history with a seven-RBI game against the rival Giants, joining Babe Herman (1930) and Juan Uribe (2013). All three did it in enemy territory.

Muncy’s rebirth and Betts’ big night made it easy for Dodgers starter Julio Urias who allowed just one run over six innings.

Urias’ only stress came in the fourth inning. Wilmer Flores jumped on a fat first-pitch changeup for a leadoff home run and the Giants put two runners on with two outs thanks to a J.D. Davis single and a walk of Brandon Crawford.

That brought Joey Bart to the plate as the potential tying run. He worked the count full before Urias nipped the inside of the strike zone with a slider for a called strike three.

After giving up 11 runs in 13? innings during the four-game series in Arizona, the Dodgers’ bullpen looked like it was still in the desert doldrums when Alex Vesia allowed three singles to load the bases in the seventh.

But Vesia struck out Bryce Johnson and Thairo Estrada then Yency Almonte got a fly out to strand the bases loaded. Almonte and Andre Jackson combined to keep the Giants scoreless the rest of the way.