With one big throw, and an even bigger swing, Curtis Granderson gave a somber city reason to smile.

Granderson threw out the potential go-ahead run at the plate in the top of the ninth inning, then hit a walk-off homer in the 10th to give the Toronto Blue Jays a 4-3 win over Boston on Tuesday night and hand the Red Sox their season-worst third straight defeat.

Tyler Clippard (3-0) worked a scoreless 10th for the win as Toronto snapped a seven-game home losing streak against the Red Sox.

Blue Jays closer Roberto Osuna was handed a 3-1 lead in the ninth but allowed the Red Sox to tie it, his first blown save in seven chances.

“It’s a big game for us,” Blue Jays manager John Gibbons said. “If you don’t win that one, that’s a kick in the teeth.”

Hanley Ramirez singled to begin the ninth, went to third on a one-out hit by Rafael Devers and scored on Eduardo Nunez’s single to right. It was the first run off Osuna this season.

Jackie Bradley Jr. struck out and Nunez stole second before Christian Vazquez walked to load the bases for Brock Holt, who scored Devers with an RBI single to left. Left fielder Granderson threw out Nunez at the plate to prevent Boston from taking the lead.

Brian Anderson singled leading off the inning against Pedro Baez (1-1) and scored on Maybin’s double to deep left field. Miami had lost eight of its previous nine and 11 of 13, including a 2-1 decision in the series opener Monday.

“Hopefully, we can start to put some momentum together and then you can start to feel like you’re going to win these games,” Marlins manager Don Mattingly said. “That’s the difference between good teams and teams that aren’t at that caliber. They feel like they’re going to win these games.”

Drew Steckenrider (1-0) got the win with one inning of relief. Brad Ziegler retired the side in the ninth for his second save.

Maybin was back at Dodger Stadium, where he celebrated winning the World Series in Game 7 last year with the Houston Astros. In a matter of months, the 31-year-old outfielder has gone from the sublime to the somewhat ridiculous with Miami’s losing streak.

“I always try to take a positive out of a negative,” Maybin said. “A positive is we feel like we’ve been in every game this year except for two ballgames. For a young team, it’s about, how do you finish? Being in the game is the first step and we were in every game.”

jets_135