TORONTO — J.D. Martinez and the Boston Red Sox wrapped up their longest trip of the season Sunday the same way they’ve finished off almost every series: with a win.

Martinez homered and had three RBI, Mookie Betts had two hits and made a sensational diving catch, and the Red Sox beat the Toronto Blue Jays, 5-3.

Boston is 12-1 in series finales, winning its past six. The Red Sox went 6-4 on a trip to Texas, and AL East rivals New York and Toronto.

“Overall I think we had a really good road trip,” Martinez said.

Boston also retains a share of the best record in the majors with the Yankees.

“To come out of a road trip like that is definitely something to be proud of,” said reliever Joe Kelly, who needed four pitches to record his second save in three opportunities.

Boston, which already has had two three-city trips, plays 13 of its next 16 and 19 of its next 26 at Fenway Park.

“It’s nice to go home, play in front of our own fans and sleep in our own beds,” Martinez said.

Martinez’s 10th homer was a two-run shot in the first inning off right-hander Joe Biagini (0-2). John Axford came on to face Martinez in the fifth, and Martinez greeted him with an RBI single, scoring Betts.

Betts, who had two singles and two stolen bases, ended the fourth by sliding into foul territory down the right-field line to catch Richard Urena’s sinking liner.

“He’s becoming a force, not only the field but in the clubhouse, in the dugout,” Manager Alex Cora said. “He’s becoming a leader. It’s fun to watch. On a daily basis you’re expecting something great and he’ll do it.”

Russell Martin had three hits for the Blue Jays, who lost for the eighth time in 11 home games. Toronto is 11-11 at Rogers Centre.

The Blue Jays chased left-hander Drew Pomeranz during a three-run fifth. Justin Smoak hit a two-run double and Yangervis Solarte walked before Hector Velazquez replaced Pomeranz. One out later, Martin added an RBI single to get Toronto within 4-3.

Pomeranz allowed three runs and five hits in four-plus innings, failing to complete six innings for the first time in three starts.

“Nothing felt good coming out of my hand,” Pomeranz said.

Velazquez (5-0) worked two scoreless innings. Barnes and Heath Hembree each pitched one inning, and Kelly finished.

“They did an outstanding job,” said Cora, who was without closer Craig Kimbrel and setup man Carson Smith, both of whom needed a day off.

Solarte singled off Matt Barnes in the seventh and tried to score from first on Martin’s two-out double, but was thrown out at home plate to end the inning. Shortstop Xander Bogaerts fielded the throw from left fielder Andrew Benintendi and fired it to catcher Christian Vazquez, who tagged Solarte to preserve Boston’s narrow lead.

“Pretty solid,” Cora said. “Under control. Nobody panicked.”

Blue Jays Manager John Gibbons said he had no problem with third base coach Luis Rivera’s decision to send Solarte.

“When the team’s struggling, you try to score some runs,” Gibbons said. “Those kind of things happen.”

Making his third start of the season and pitching in place of the injured Marcus Stroman, Biagini allowed four runs and four hits in 42/3 innings for the Blue Jays.

NOTES: Brock Holt of Boston was thrown out trying to steal third in the ninth, the second Red Sox player in as many days to be caught stealing at third. Cora said it’s something he’ll talk to the team about. “We need to address that,” Cora said. “If we’re going to go, we’d better be safe. When we make decisions like that, it can’t be a gamble. We have to be 100 percent sure we make it.” … At 3 hours, 42 minutes, this was Toronto’s longest nine-inning game of the season by 15 minutes. … Following the game, the Blue Jays optioned outfielder Anthony Alford to Triple-A. A corresponding move will be made before Toronto’s next game, Tuesday at New York against the Mets.

Only subscribers are eligible to post comments. Please subscribe or to participate in the conversation. Here’s why.

Use the form below to reset your password. When you've submitted your account email, we will send an email with a reset code.