Gary A. Vasquez-USA TODAY Sports

Shohei Ohtani hit his first home run in a Dodgers uniform as Los Angeles finished off a three-game sweep of the visiting San Francisco Giants with a 5-4 victory on Wednesday.

Ohtani went deep into the seats in right-center field in the seventh inning off Giants left-hander Taylor Rogers in his ninth game of the season, ending the longest season-opening homer drought of his major league career. Ohtani finished 2-for-4 with two runs.

The Dodgers have scored at least five runs in all nine games this season to extend their franchise record and move closer to the New York Yankees' record of 13 games in 1932.

Tyler Glasnow (2-0) won for the second time in three starts and Miguel Rojas added a home run as the Dodgers finished 6-1 on their first homestand of the season.

Glasnow allowed three runs on four hits in six innings. He fanned seven and walked two.

Patrick Bailey and Jorge Soler each hit a home run and Michael Conforto added a two-run single as the Giants lost for the fifth time in seven games to open the season. They now head to the Bay Area for their home opener on Friday against the San Diego Padres.

San Francisco left-hander Kyle Harrison (1-1) gave up four runs on six hits over five innings with three walks and four strikeouts.

The Dodgers took a 1-0 lead in the second inning on an RBI groundout from Rojas before Bailey tied it in the third on his first home run. Will Smith hit an RBI double in the Dodgers' half of the third, and Teoscar Hernandez followed with an run-scoring single for a 3-1 lead.

Rojas' homer in the fourth increased the Los Angeles lead to three before the Giants pulled within 4-3 on Conforto's two-run single.

The Dodgers got a bit more breathing room on Ohtani's blast, his first with Los Angeles since he signed a 10-year, heavily deferred $700 million free agent contract in the offseason.

The Ohtani homer proved key when Soler crushed a 452-foot home run in the eighth inning to get the Giants within 5-4. However, Los Angeles right-hander Dinelson Lamet pitched a perfect ninth inning in his second appearance for the Dodgers to record his first career save.

More must-reads:

TODAY'S BEST
Lonzo Ball shares eye-opening details about his knee injury
Jets QB Aaron Rodgers insists focus has been football, not politics
Hurricanes general manager steps down, leaving front office in flux
Travis Kelce echoes Patrick Mahomes in response to controversial kicker
Cowboys QB Trey Lance details how he has changed since 49ers stint
Historic NCAA settlement reached allowing schools to pay players
Celtics dominate Pacers in Game 2, take 2-0 ECF lead
Cavaliers fire head coach J.B. Bickerstaff
Connor McDavid's 2OT goal gives Oilers win over Stars in Game 1
Rob Manfred hints at big change coming to MLB
Scottie Scheffler arrest case takes another weird turn with new video
QB Russell Wilson believes Steelers can 'do something special'
Pacers star suffers injury in ugly Game 2 loss
Watch: Jaylen Brown's big second quarter lifts Celtics to halftime lead
Broncos HC Sean Payton raves about one QB's progress at OTAs
North Carolina basketball snags instant-impact player via transfer portal
Rams GM shares details about Stetson Bennett’s absence
Perpetual Bulls trade candidate once more hitting the rumor mill
MLB announces host venues for 2026 World Baseball Classic
Knicks marquee trade acquisition could bolt in free agency

Want more sports news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.