TORONTO -- Mauro Gomez hit a two-run triple in a three-run ninth inning and Ryan Lavarnway had four RBIs Friday as the Boston Red Sox defeated the Toronto Blue Jays 8-5.

Jacoby Ellsbury led off the ninth with a single against Darren Oliver (3-3) who was replaced by Casey Janssen.

Cody Ross then singled to left with one out before Gomez tripled to the gap in right centre to put the Red Sox into a 7-5 lead.

Lavarnway then added a sacrifice fly to score Gomez from third as the Red Sox snapped a six-game losing streak against Toronto.

Reliever Chris Carpenter (1-0) entered the game in the eighth inning and got the win. Andrew Bailey pitched the ninth for his third save.

Red Sox starter Daisuke Matsuzaka held the Blue Jays to three hits, but allowed four runs in 5 1-3 innings. He gave up three walks, hit a batter and had two wild pitches that scored runs.

Toronto left-hander Aaron Laffey lasted just 3 2-3 innings, allowing three runs and four hits, including Lavarnway's fourth-inning homer to tie the game 3-3. Chad Jenkins gave up two runs in relief.

The Blue Jays (65-78) scored three runs in the third, two on wild pitches by Matsuzaka.

Moises Sierra started the inning when he was hit by a pitch. Anthony Gose walked. Colby Rasmus walked with one out to load the bases.

With the bases loaded, Moises Sierra scored on the first wild pitch and the other runners moved to second and third. Brett Lawrie then walked on the second wild pitch, which scored Anthony Gose from third. Colby Rasmus then came home when Lind grounded out to second after the attempt to force Lawrie at second failed.

Given a 3-0 lead, Laffey gave it all back in the fourth. Ross led off with a walk, Gomez singled and Lavarnway hit his second homer of the season.

Laffey got two outs but gave up his third walk of the game and was replaced by Jenkins.

Daniel Nava hit a two-run, two-out single in the fifth to put Boston (65-80) into a 5-3 lead. Aviles hit a one-out single and took second on Ross' groundout.

Aviles was safe at third when, on Gomez's grounder to third base, he avoided Lawrie's tag for what would have been the third out. Lavarnway then walked to load the bases and Nava singled to right.

The Blue Jays pulled to within one run in the sixth when Lind tripled with one out and Clayton Mortensen, who replaced Matsuzaka, gave up a single to Yunel Escobar.

Rasmus led off the eighth with a single against Vicente Padilla. Lawrie followed with a double to tie the game 5-5. Lind lined to left where Nava made a diving catch and nearly caught Lawrie at second for a double play.

After Carpenter replaced Padilla, Escobar grounded to shortstop but Lawrie was thrown out at third on a baserunning mistake.

Escobar went to second on a wild pitch and Kelly Johnson was walked intentionally but J.P. Arencibia fly to centre to end the threat.

Notes: Blue Jays first baseman Edwin Encarnacion was not in the starting lineup Fafter being hit by a pitch on the wrist in Thursday's 8-3 win over Seattle. ... Blue Jays' pitching coach Bruce Walton was back with a bruised right arm after being hit by the barrel of a broken bat in the first inning of Thursday's game. Walton was able to get both arms up when Encarnacion's bat shattered on a groundout with the barrel flying into the dugout. ... Left-hander J.A. Happ had successful surgery Thursday on his fractured right foot. ... Jason Frasor made his 500th career appearance as a Blue Jay when he entered the game in the sixth. ... The Blue Jays will send Carlos Villanueva (7-5, 3.58 earned-run average) to the mound Saturday against Boston's Clay Buchholz (11-6, 4.46 ERA). ... Announced attendance at Rogers Centre was 21,888.