BOSTON — Cody Ross went 4-for-5 with a home run and three RBIs in his return to Boston as the Arizona Diamondbacks held off the Red Sox 7-6 on Friday night at Fenway Park.

Paul Goldschmidt hit a two-run homer for the Diamondbacks, who tagged Boston pitchers for 16 hits.

Randall Delgado (4-3) rode the offensive surge to his fourth straight win and Brad Ziegler picked up his sixth save despite allowing singles to Stephen Drew and Jacoby Ellsbury in the bottom of the ninth. Ziegler made a nice barehanded play on a grounder by Dustin Pedroia and threw to first for the final out.

Drew and David Ortiz hit two-run homers for Boston, which remained one game up on Tampa Bay for first place in the American League East after San Francisco’s 4-1 win over the Rays on Friday night.

Ross started in left for Arizona and received mostly cheers in his first at-bat in Boston since he played for the Red Sox last year. He was 3-for-3 with two doubles before his solo homer in the seventh off Pedro Beato (1-1) barely cleared the Green Monster in left field.

Umpires reviewed it briefly before agreeing a fan did not interfere and the run stood. It turned out to be the winning hit.

Ross had 22 home runs and 81 RBIs in 2012 for Boston and signed with the Diamondbacks as a free agent in December. He said before the game that he felt “jaded” that the Red Sox passed on him before signing free agents Shane Victorino and Mike Napoli.

While Ross said he had put it behind him, he played like he still held a bit of a grudge.

Before Friday night’s game, Ross said the Red Sox lied to him last winter while the two sides were in contract negotiations.

Ross was coming off a one-year, $3 million contract with Boston in which he hit 22 home runs. After talks broke down, Ross ended up signing a three-year, $25 million deal with the Arizona Diamondbacks.

“Once I got into free agency, I didn’t drive the price up or do anything that would possibly affect me coming back here,” Ross told Boston radio station WEEI. “I just wanted fair value and fair years. They weren’t willing to go there — for whatever reason, I have no idea.

“They told me that they didn’t want to sign guys to long-term deals, and then they gave (Shane) Victorino a three-year deal, and then (Mike) Napoli a three-year deal or four-year deal, whatever it was. So, basically they lied to my face. At that point, I kind of got a bad taste in my mouth and wanted to move on, and that was it.

“It is what it is. Like I said, it was a great time being here.”

Napoli’s deal was later shortened to one year because of health concerns.

In the sixth inning, Delgado started to tire. One batter after Jarrod Saltalamacchia came just a yard or two short of a homer to right center, Drew hit one out to almost the same location for a two-run shot that tied it at 6. It was the fourth earned run off Delgado, who had not allowed more than three earned runs in his first eight starts.

Drew’s homer also saved Boston starter Jon Lester from a possible loss after he allowed a season-high 11 hits in 4 1/3 innings.

Arizona scored six runs off Lester before he left in the top of the fifth after Martin Prado and Ross hit back-to-back RBI doubles as the Diamond backs scored three times for a 6-5 lead.

Arizona jumped on Lester with two runs in the first inning on Goldschmidt’s 25th homer of the season. It was one of three extra-base hits in the inning for the Diamondbacks, who also got doubles by Aaron Hill and Ross.

The Red Sox got the runs right back in the bottom of the first when Ellsbury led off with a triple and scored on Ortiz’s two-run homer to center. Ortiz’s 21st homer of the season ended Delgado’s 15 1/3-inning scoreless streak.

Boston added two unearned runs in the second after a throwing error by shortstop Didi Gregorius.

NOTES: Trade-deadline acquisition Jake Peavy (8-4 with the Chicago White Sox) is scheduled to make his debut for Boston on Saturday against Arizona’s Patrick Corbin (12-2) when the three-game series resumes. … Ellsbury’s leadoff triple in the first raised his average in interleague play to .500 (20-for-40). Ellsbury has hit safely in all 10 of Boston’s interleague games this season. … Ortiz was in a 3-for-14 slump before driving the first pitch he saw out of the park. … The Diamondbacks opened the three-game series with a 4-5 record in interleague games this season.

GIANTS 4, RAYS 1: The San Francisco Giants exploded for three runs on five consecutive hits in the seventh inning and went on to defeat the Tampa Bay Rays 4-1 at Tropicana Field Friday night.

Until then, Rays’ starter Chris Archer had been rolling, allowing only two hits and one run on Giants first baseman Brandon Belt’s 11th home run of the season.

But with two outs in the seventh, however, the wheels came off of Archer’s pursuit of his fifth consecutive win.

Hunter Pence singled and then Belt collected his third hit of the night, a triple to score Pence. Brandon Crawford followed with his seventh home run of the season.

The Rays scored first in the third when Ben Zobrist drove home Jose Lobaton. Lobaton had reached on a double and advanced to third on Ryan Robert’s bunt single.

San Francisco starter Madison Bumgarner, (11-6) pitched seven innings scattering three hits while striking out 11 to equal his season’s high.

Santiago Casilla and Javier Lopez followed Bumgarner before Sergio Romo came on with one out in the ninth to collect his 26th save.

Archer (6-4) took the loss, his first in his last eight starts. The loss halted his consecutive win streak at four games.

ORIOLES 11, MARINERS 8: Chris Davis hit his major league-leading 40th home run and Nate McLouth belted his first career grand slam, leading the Baltimore Orioles to an 11-8 victory over the Seattle Mariners on Friday night.

Davis hit a third-inning pitch off right-hander Aaron Harang that traveled 442 feet and landed on Eutaw Street. Davis joined Frank Robinson (49), Jim Gentile (46), Rafael Palmeiro (43) and Brady Anderson (50) as the only Orioles to hit 40 homers in a season.

Seattle has now lost four consecutive games after being swept by Boston to open a six-game road trip.

Baltimore starter Chris Tillman gave up six runs, which equaled a season high, and eight hits with five strikeouts and three walks in 5 1/3 innings. He is still unbeaten in five career starts against his former team.

Adam Jones went 2-for-4 with three RBIs, and Ryan Flaherty picked up three hits, including his seventh home run for the Orioles.

Seattle designated hitter Kendrys Morales went 4-for-4 with a home run. Humberto Quintero, Michael Morse and Michael Saunders also homered for the Mariners.

Harang lasted five innings and allowed seven runs and seven hits with one strikeout and two walks.

The Mariners pulled to 7-6 on a sacrifice fly by Saunders in the fifth off Troy Patton. However, McLouth’s grand slam in the sixth put the game out of reach.

The Orioles took the lead in the first inning when Jones’ bases-loaded double, which was bobbled by left fielder Raul Ibanez, resulted in three runs. Two batters later, Matt Wieters’ sacrifice fly made it 4-0.

The Mariners cut the margin to 4-3 in the third on a two-run homer by Saunders and a two-out RBI single by Morales.

Davis then boosted the Orioles’ lead to two runs with a solo shot to right field that was the 72nd in Camden Yards history to land on Eutaw Street.

Flaherty provided a 6-3 lead in the fourth when he drove a ball that landed on the flat part of the left-field wall. The umpires eventually ruled it a home run after a brief review.

Quintero answered for Seattle with a leadoff homer in the fifth. However, Jones picked up his third RBI in the bottom of the inning with a single to center that scored Manny Machado.