BOSTON — The Boston Red Sox limped into a tough West Coast trip after their worst series this season.

Miguel Cabrera hit a tiebreaking home run in the ninth inning that bounced off the top of the wall and into Boston's bullpen, lifting the Detroit Tigers to a 4-3 victory over the Red Sox on Wednesday for a three-game sweep.

The Red Sox were the last major league team to be swept in a series of any length this season. They lost five of their final six on a nine-game homestand, going 4-5 during the stay.

They open an 11-game trip, starting Thursday night with the first of four against the Los Angeles Angels.

"Our ability to go out and put up a complete game is important to head out on the road where we know things are going to be more difficult, just being away from Fenway Park," manager John Farrell said before the game.

They rallied to tie it in the eighth on Mookie Betts' RBI triple. Cabrera hit his 21st homer, connecting off Brad Ziegler (0-1).

"Unfortunately we're one swing of the bat difference," Farrell said.

Ziegler was surprised the ball carried out.

"I just kind of watched it in the air, it looked like it just kept getting further and further away," he said. "I was, 'What in the world?' I didn't think he hit it that good."

After the Angels, Boston has four games in Seattle and three versus the Dodgers in Los Angeles.

Xander Bogaerts and Dustin Pedroia hit solo homers for the Red Sox.

Boston starter Eduardo Rodriguez allowed three runs and nine hits in 5 1/3 innings.

"I thought he threw the ball well against a quality right-handed hitting lineup," Farrell said.

James McCann also hit a solo homer, and Victor Martinez had four singles, a walk and drove in two runs for Detroit, which has won five of seven.

Tigers rookie starter Michael Fulmer had another solid start, giving up three runs on seven hits with three strikeouts and no walks in 7 2/3 innings.

Bruce Rondon (4-2) got one out for the win. Justin Wilson got the final three for his first major league save because closer Francisco Rodriguez was unavailable after working the past two days.

Manager Brad Ausmus said after the game that Rodriguez was away from the club "tending to a personal issue." He expects him back Friday.

In the seventh, Fulmer gave up a solo homer to Bogaerts leading off and took a high-hop grounder from Jackie Bradley Jr. off the top of the right shoulder, but the 23-year-old right-hander stayed in the game.

The Red Sox chased him in the eighth, tying it on Betts' triple when centre fielder Tyler Collins took a bad route before missing a diving attempt.

McCann made it 3-1 in the sixth, hitting a drive that caromed off a billboard above the Green Monster seats.

TRAINER'S ROOM

Red Sox: Closer Craig Kimbrel had a bullpen session. Farrell said he'll have a rehab assignment Saturday with Triple-A Pawtucket. After that, it's uncertain if he'll be activated right away. "It could be as few as one," Farrell said. "It'll be dependent physically on how Craig feels." ... C Ryan Hanigan was still only available on an emergency basis after being scratched Tuesday with flu-like symptoms. .... 1B Hanley Ramirez had the day off.

THAT'S A STRIKE

Collins did have a nice throw, nailing Sandy Leon attempting to score on a fly ball from medium-deep centre to end the third.

UP NEXT

Tigers: Off Thursday before opening a three-game home series versus Houston. LHP Matt Boyd (1-2, 4.63 ERA) is set to start against Astros RHP Collin McHugh (7-6, 4.18).

Red Sox: Boston LHP David Price (9-7, 4.51) hopes to rebound from two straight mediocre starts on Thursday.