It didn’t look good for the Tigers, failing to drive in some early runs, falling behind 4-0 and seeing starting pitcher Anibal Sanchez leave in the fifth inning with a right pectoralis strain.

But back-to-back home runs by Nick Castellanos and Eugenio Suarez in the ninth inning propelled the Tigers to a 5-4 victory over the Blue Jays on Friday night at Rogers Centre.

Castellanos hit a two-run home run to left with one out in the top of the ninth to tie the game, 4-4. Suarez, who missed the previous three games with a knee injury, followed with a solo home run to center to give the Tigers their first lead of the game.

Joe Nathan allowed one single and two walks in the ninth but earned his 24th save of the season. With two out and the bases loaded, leftfielder Rajai Davis made a sliding catch in foul territory on a ball hit by Josh Thole.

“Great moment for myself, great moment for Suarez and, more importantly, great moment for this team,” Castellanos said. “We haven’t exactly had the results that we’ve wanted offensively the past series with the Yankees and beginning of this game. I was just happy I could come through and put a smile on everybody’s face in the dugout because sometimes all it takes to get things going is one swing.”

Left-hander Blaine Hardy and right-hander Al Alburquerque each pitched 12⁄3 innings of relief for the Tigers. Hardy allowed two hits with one strikeout. Alburquerque (3-1) didn’t allow a hit or a walk and had two strikeouts.