Rafael Devers hit his first home run for San Francisco against his former team on Saturday, and the Giants beat the visiting Boston Red Sox 3-2 just six days after the big trade between the teams.

Devers was acquired from Boston last Sunday. He delivered his first long ball for the Giants in the third inning after he went hitless in his first six at-bats in the series.

Devers sent an opposite-field drive off Brayan Bello (3-2) over the left-field fence for a two-run shot that happened to be caught by a fan in a Red Sox T-shirt. Devers got loud cheers from the crowd at Oracle Park as he rounded the bases for his 216th career home run that gave the Giants a 3-0 lead.

Heliot Ramos also homered for the Giants, who won for just the second time in their last seven games.

Landen Roupp (5-5) bounced back from a rough start last Saturday against the Dodgers, throwing six scoreless innings with seven strikeouts to earn the win.

Camilo Doval allowed two runs in the ninth before getting his 12th save in 15 chances.

Boston had won seven of the last eight games.

Yankees 9, Orioles 0: Clarke Schmidt pitched seven hitless innings and New York held Baltimore to one hit in a rout at Yankee Stadium.

JT Brubaker gave up a two-strike single to Gary Sánchez to open the eighth for the Orioles’ only hit.

Schmidt (4-3) was bidding to throw New York’s first no-hitter since Domingo Germán threw a perfect game on June 28, 2003.

Schmidt struck out five and issued both walks in the first inning when he threw 29 pitches. The right-hander exited after tying his career high of 103 pitches.

Brubaker pitched the final two innings to finish New York’s second one-hitter this season.

Trent Grisham, JC Es- carra, Ben Rice and Anthony Volpe hit solo homers as the Yankees finished with 14 hits.

Mets 11, Phillies 4: Juan Soto and Brandon Nimmo each hit two home runs, and New York connected for seven solo shots to snap a seven-game losing streak with a win at Philadelphia.

Francisco Lindor, Jared Young and Francisco Alvarez also went deep for the Mets, who tied Philadelphia atop the NL East at 46-31. Lindor drove in three runs, and Soto finished with four hits and four RBIs.

Padres 5, Royals 1: Fernando Tatis Jr. launched a three-run homer to end his long power drought and Dylan Cease pitched three-hit ball into the seventh inning as San Diego won at home over Kansas City.

The loss halted the Royals’ four-game winning streak.

With the Padres ahead by one in the seventh, Jose Iglesias and Bryce Johnson hit consecutive singles. Tatis followed by smashing a 96 mph sinker from reliever Taylor Clarke into the left-field bleachers for his 14th homer this season and first since May 27.

Cease (3-6) gave up one run and struck out four in 6 2/3 innings.

Cubs 10, Mariners 7: Ian Happ homered twice and drove in four runs, and Chicago held off Cal Raleigh and Seattle at Wrigley Field.

Raleigh opened the ninth inning with his major league-leading 30th homer after he went deep twice on Friday. Luke Raley hit a two-out single for Seattle, but Daniel Palencia closed it out when he retired Donovan Solano on a foul popup.

Michael Busch, Kyle Tucker and Pete Crow-Armstrong also homered for the Cubs.

Solano and Raley each had three hits and two RBIs for Seattle.

Diamondbacks 5, Rockies 3: Eugenio Suárez and Geraldo Perdomo homered, Ketel Marte went 4 for 4 and visiting Arizona beat Colorado for its third straight victory.

A night after homering twice to reach 300 in his career in a 14-8 victory, Suárez hit his 25th homer of the season — a solo shot in the third for a 3-2 lead — to tie the Dodgers’ Shohei Ohtani for the National League lead and push his major league-leading RBI total to 67.

Rays 8, Tigers 3: Junior Caminero, Danny Jansen and Christopher Morel each hit a solo homer, helping Ryan Pepiot and Tampa Bay beat visiting Detroit.

Pepiot (5-6) struck out seven while pitching five innings of one-run ball.

The Rays are an MLB-best 22-8 since May 20.

Brewers 9, Twins 0: Jose Quintana pitched six innings of three-hit ball, and Milwaukee defeated host Minnesota.

Isaac Collins had two hits and three RBIs for the Brewers in their third consecutive win. Brice Turang had two hits and scored two runs.

The Twins had four hits in their eighth loss in nine games.

Quintana (5-2) struck out four and walked one.

Cardinals 6, Reds 5 (11): Yohel Pozo had a two-out RBI single in the bottom of the 11th inning to give St. Louis a comeback victory over Cincinnati.

The Cardinals overcame a 5-2 deficit, tying it in the ninth on Nolan Arenado’s leadoff homer off Emilio Pagán. Alec Burleson had a two-run homer and an RBI single for St. Louis.

Rookie Chase Petty (0-3), the eighth Reds pitcher, gave up the deciding hit to Pozo.

Reds star Elly De La Cruz hit a changeup 435 feet to center in the seventh for his team-leading 17th homer and a 5-2 lead.

Rangers 3, Pirates 2: Corey Seager singled in the tiebreaking run in the sixth inning and rookie Kumar Rocker won his second straight start as Texas was victorious at Pittsburgh.

Rocker (3-4) gave up two runs and five hits in 5 1/3 innings after pitching five scoreless innings against the Chicago White Sox in his previous start last Sunday.

Mitch Keller (1-10) took his 10th consecutive loss, allowing three runs and three hits in 5 2/3 innings.

Braves 7, Marlins 0: Ronald Acuña Jr. had two hits, walked twice and drove in a run as Atlanta won at Miami.

Drake Baldwin homered for the Braves, who have won seven of nine.

Braves starter Grant Holmes (4-6) pitched 5 2/3 innings, giving up five hits while walking five and striking out five.

Blue Jays 7, White Sox 1: Vladimir Guerrero Jr. and Bo Bichette homered, helping José Berríos and host Toronto beat lowly Chicago.

Berríos (3-3) surrendered an unearned run and two hits in 7 2/3 innings. The right-hander struck out five in his first win since May 29.

The last-place White Sox finished with two hits in their ninth loss in 10 games.

Davis Schneider had three RBIs for Toronto.

SALE GOES ON IL

The Braves placed reigning NL Cy Young Award winner Chris Sale on the 15-day injured list because of a fractured left rib cage.

“He was doing his exercises (Friday) and felt like something wasn’t right,” manager Brian Snitker said. “So they had him looked at and it showed what it showed.”

In his previous start, against the New York Mets on Wednesday, Sale sprinted off the mound and made a diving stop of a grounder hit by Juan Soto and threw him out for the first out in the ninth. He then struck out Pete Alonso and was lifted after allowing a single to Brandon Nimmo.

Sale is 5-4 and has a 2.52 ERA through 15 starts.