MIAMI — Giancarlo Stanton hit his team-record 43rd home run, connecting in his fifth straight game and sending the Miami Marlins over the San Francisco Giants 8-3 on Monday night.

Stanton broke the club mark of 42 homers set by Gary Sheffield in 1996. Stanton has homered 22 times in his last 34 games.

Stanton set another team record for most consecutive games with a home run when he tagged Ty Blach (8-8) for a two-run drive in the first inning. The All-Star slugger later had an RBI single as Miami won its fourth straight.

Marcell Ozuna also homered for the Marlins. Dee Gordon had three hits, scored twice, and drove in a run to help back Adam Conley (5-5), who allowed three runs in 61/3 innings.

Denard Span’s two-run double tied the game in the third and Hunter Pence’s single put the Giants on top 3-2. Christian Yelich tied it with an RBI single in the bottom half.

Gordon and Stanton hit back-to-back RBI singles in the fourth.

Ozuna hit a solo home run, his 27th, in the fifth.

AMERICAN LEAGUE

BLUE JAYS 2, RAYS 1: Josh Donaldson homered for the second consecutive game, Nick Tepesch won for the first time in almost three years and host Toronto beat slumping Tampa Bay.

The last-place Blue Jays have won 10 of 14 at home.

Wilson Ramos homered to provide the only run for the offense-starved Rays, who lost their fourth straight. Tampa Bay arrived in Toronto on the heels of a 2-7 homestand in which it totaled 11 runs and was shut out five times during an eight-game span.

Tepesch (1-2) had not won since Sept. 16, 2014, when he beat Oakland while pitching for Texas. The right-hander allowed one run and four hits, giving way to Aaron Loup after the first two batters reached safely in the seventh inning.

INTERLEAGUE

YANKEES 4, METS 2: Aaron Judge hit a tying home run in the sixth inning, Aaron Hicks and Gary Sanchez went deep in the eighth and the Yankees rallied to beat the Mets in the first of four Subway Series matchups this week.

Curtis Granderson and Yoenis Cespedes homered in the third inning off Luis Cessa to give the Mets a 2-0 lead at Yankee Stadium.

Sanchez started the Yankees’ comeback with a sacrifice fly in the fourth against Rafael Montero. Two innings later, Judge hit his AL-leading 36th home run – just his sixth since the All-Star break. The ball was dropped in the right-center field bleachers by a fan wearing a Judge jersey.

Hicks, who returned last week from an oblique injury, homered against Hansel Robles (7-4) leading off the eighth, his career-best 12th homer. Sanchez homered two batters later against Erik Goeddel. With 20 homers, Sanchez matched his total in his rookie season last year.

David Robertson (6-2) pitched a hitless eighth and Dellin Betances finished a six-hitter for his seventh save, throwing a called third strike past Mets rookie Amed Rosario to end the game with a runner on.

Yankees Manager Joe Girardi rested closer Aroldis Chapman, who took the loss after blowing a ninth-inning lead against Boston on Sunday night and threw 46 pitches over the previous three days.

With their ninth win in 13 games against the Mets, the Yankees closed within 41/2 games of the AL East-leading Red Sox.