Wilmer Flores hit an RBI single with two outs in the bottom of the ninth inning and the San Francisco Giants beat the Seattle Mariners 5-4 on Sunday to sweep the three-game series.

Mike Yastrzemski hit a three-run homer for the Giants, who are 8-1 and off to their best start since 2003.

Randy Arozarena tied it at 4 for the Mariners in the ninth with an RBI double after Seattle was down to its last strike against Giants closer Camilo Doval (1-0).

Flores singled in Luis Matos with two outs on the first pitch he saw from Gregory Santos (0-2) to win it.

The Giants scored four times in the fourth after trailing 2-0, capped by Yastrzemski’s opposite-field homer.

Julio Rodríguez and Cal Raleigh hit solo homers to put Seattle up 2-0.

Padres 8, Cubs 7: Luis Arraez had four hits, Fernando Tatis Jr. scored the go-ahead run in the ninth when first baseman Justin Turner couldn’t make the catch to finish a double play, and San Diego beat Chicago at Wrigley Field.

The Padres’ Gavin Sheets singled off Porter Hodge to tie it in the eighth.

Jackson Merrill homered for the Padres, who had lost two straight after opening the season with seven consecutive victories for the best start in franchise history.

Kyle Tucker homered and drove in three runs and Nico Hoerner added three hits for the Cubs, whose five-game win streak ended.

The Padres went ahead 3-0 in the first inning. Ben Brown (2-1) allowed two walks and a bunt single before hitting Jake Cronenworth to bring in a run. Xander Bogaerts reached on an infield single and Jason Heyward walked to score the other runs.

The Cubs scored five runs in the bottom of the first. After Kyle Hart (1-1) issued two walks, Tucker singled, Turner had a sacrifice fly and Hoerner doubled to tie it. Logan Gillaspie replaced Hart and was called for two balks while pitching to Carson Kelly, scoring two runs.

Tucker hit a two-run homer in the second for his fifth, tied for the NL lead.

Pirates 5, Yankees 4 (11): Tommy Pham’s run-scoring single in the bottom of the 11th inning lifted Pittsburgh over New York.

The Yankees scored three times in the ninth off Ryan Borucki to tie the game at 4. Oswald Peraza doubled in a run with two outs and Trent Grisham followed with a two-run single. Borucki was trying to earn the first save of his eight-year career.

Pirates starter Andrew Heaney gave up one run in seven innings while striking out 10.

Cardinals 4-7, Red Sox 5-18: Alex Bregman hit a three-run homer and tied a career high with six RBIs, Rafael Devers had four hits and three RBIs, and Boston rolled to a win and a doubleheader sweep of St. Louis at Fenway Park.

Wilyer Abreu added a double and three RBIs for Boston, which had 22 hits.

Hunter Dobbins scattered five hits and gave up two runs over five innings to win his major league debut.

Cardinals starter Miles Mikolas (0-1) allowed nine runs and 11 hits in 2 2/3 innings.

In the makeup of Saturday’s rainout, Abreu singled off the Green Monster to drive in the winning run in the bottom of the 10th as the Red Sox rallied for a victory in the opener. Devers, who began the season 0 for 21, hit his first homer of the year.

Mets 2, Blue Jays 1: Pete Alonso hit a go-ahead single in the third inning and New York edged visiting Toronto.

New York extended its winning streak to four by taking three in a row from the Blue Jays.

David Peterson, Max Kranick (1-0), Reed Garrett, A.J. Minter and Edwin Díaz combined on a four-hitter.

Brewers 8, Reds 2: Jackson Chourio homered twice and matched a career high with five RBIs as host Milwaukee defeated Cincinnati.

Chad Patrick (1-0) allowed one run and two hits over 5 1/3 scoreless innings for his first major league win.

Chourio hit a sacrifice fly in the third, then capped a five-run fourth with a three-run homer that made it 7-0. He added a solo shot in the seventh.

Rockies 12, Athletics 5: Chase Dollander won his major league debut with five solid innings, and Colorado routed the visiting Athletics to snap a six-game skid.

Dollander, the ninth overall pick in 2023, gave up a two-run homer to Tyler Soderstrom in the first but worked out of a jam in the fourth.

Brenton Doyle homered, doubled, singled and drove in four runs and Ezequiel Tovar tied a career high with four hits and had three RBIs.

Astros 9, Twins 7 (10): Jose Altuve drove in the go-ahead run with a single in the 10th after Yordan Alvarez tied it with a two-run homer in the ninth and visiting Houston rallied from an early six-run deficit to beat Minnesota.

The Twins led 7-1 after four innings, but the Astros came all the way back by scoring twice in the ninth off Twins reliever Griffin Jax to tie it at 7. Isaac Paredes led off with his fourth single of the game and Alvarez hit Jax’s next pitch for his first home run of the season.

Rangers 4, Rays 3: Jonah Heim’s walk-off single with two outs in the ninth inning scored Josh Smith and Texas defeated Tampa Bay for its fifth consecutive win.

Nationals 5, Diamondbacks 4: Alex Call and Paul DeJong each had two hits and drove in a run and Trevor Williams struck out six over five innings as host Washington beat Arizona and handed Corbin Burnes his first loss.

Burnes (0-1) yielded four runs while throwing 89 pitches over five innings.

Royals 4, Orioles 1: Kris Bubic took a shutout into the seventh and Kansas City won at home over Baltimore.

Bubic (2-0) allowed five hits, walked one and struck out eight in 6 2/3 innings.

Tigers 4, White Sox 3: Spencer Torkelson smacked a two-run double to cap Detroit’s three-run rally in the bottom of the ninth inning that beat Chicago.