BOSTON (AP) — Victor Martinez had five hits, including a career-high four doubles — one of them to break a sixth-inning tie after Oakland walked the bases loaded — and the Boston Red Sox rallied from a four-run deficit to beat the Athletics 9-4 on Tuesday night.

John Lackey (6-3) spotted the A's a 4-0 lead before Adrian Beltre hit a three-run homer in the fifth. In the sixth, Bill Hall reached on a leadoff walk and then Darnell McDonald and Marco Scutaro both tried to sacrifice bunt but wound up walking as well.

Hall scored to tie it on Dustin Pedroia's double-play grounder, then Martinez's line drive one-hopped into the stands to make it 5-4. Hall added an RBI triple in the seventh, and Martinez also hit an RBI double and scored in the eighth, when the Red Sox added three more runs to take a 9-4 lead.

Lackey struggled through six innings, giving up four runs on 12 hits and four walks while striking out two as the Red Sox won their third straight and for the eighth time in their last 10 games.

Tyson Ross (1-4) inherited a 4-3 lad when he relieved Gio Gonzalez at the start of the sixth and walked both batters he faced before Craig Breslow came in to face Scutaro. Gabe Gross had three hits for the A's, who had won five of their previous six games.

Pedroia doubled in the eighth to snap an 0-for-17 slump, then scored on Martinez's fourth double of the game. Kevin Youkils and J.D. Drew added RBI singles to make it 9-4.

Daric Barton hit a two-run homer for Oakland in the third. The A's made it 4-0 when Ryan Sweeney doubled and scored on Jack Cust's single, then Cust scored on Mark Ellis' bloop double to right.

But the Red Sox got back in the game in the fifth on one swing from Beltre, who had three hits.

After Martinez doubled off the Green Monster and Youkilis singled off third baseman Kevin Kouzmanoff's glove, Beltre smacked the ball so hard off the Monster Seats that it bounced much of the way back toward the infield. Gonzalez got Drew on a meek check-swing bouncer back to the mound to end the inning.

NOTES: The start of the game was delayed 20 minutes due to rain. ... Boston OF Mike Cameron got the day off because of abdominal soreness. Cameron had two doubles on Sunday. He missed 34 games with abdominal pains earlier in the season. ... OF Jacoby Ellsbury (ribs) took some swings in the batting cage on Tuesday. ... Bleacher fans with an eye toward the NBA finals broke out in a series of half-hearted "Beat L.A.!" chants throughout the game. ... Opponents are hitting .128 against Manny Delcarmen, which is best among AL relievers. ... Gonzalez, who took a shutout into the fifth inning, allowed three runs on seven hits and four walks while striking out five. ... Martinez is the first catcher with four doubles in a game since Sandy Alomar did it in 1997, for Cleveland against the Red Sox at Fenway Park.