TORONTO — Mark Teixeira hit a tying homer in the ninth inning and Aaron Hicks added a game-winning blast as the New York Yankees avoided a four-game sweep, beating the Toronto Blue Jays 7-5 on Monday night.

With Toronto leading 3-2 heading to the ninth, Manager John Gibbons called on Jason Grilli (7-6) to close it out because Roberto Osuna was unavailable after pitching the previous two days.

Teixeira tied it 3-all with a one-out drive into the second deck in right. After flipping his bat, Teixeira yelled “Blown save!” at Grilli after returning to the dugout.

Didi Gregorius singled and Hicks followed with a two-run homer.

New York scored five runs in a bat-around ninth, matching their total from the 35 previous innings in the series.

INDIANS 7, TIGERS 4: Cleveland clinched the AL Central title, overcoming an injury to ace right-hander Corey Kluber in a victory at Detroit.

Kluber left after four innings with right groin tightness, joining Carlos Carrasco and Danny Salazar in a group of talented Cleveland pitchers dealing with injuries. But even those concerns were secondary when the Indians poured onto the field to celebrate their first division title since 2007.

Buck Farmer (0-1) allowed four runs in five innings for the Tigers, who fell two games behind Baltimore for the second AL wild card.

WHITE SOX 7, RAYS 1: James Shields (6-18) pitched six effective innings for his first win in two months and Justin Morneau and Carlos Sanchez each hit a two-run homer in a win at Chicago.

NATIONAL LEAGUE

MARLINS 7, METS 3: Dee Gordon homered leading off the first inning for Miami, which totaled 14 hits and mixed cheers with the tears of the past two days in its first game since Jose Fernandez died in a boating accident early Sunday morning.

Adam Conley pitched three scoreless innings subbing for Fernandez, who had been scheduled to make his final start of the year.

CUBS 12, PIRATES 2: Javier Baez hit a grand slam and drove in a career-high six runs and major league ERA leader Kyle Hendricks pitched six scoreless innings as visiting Chicago won its 100th game.

REDS 15, CARDINALS 2: Joey Votto and Adam Duvall hit two of the Cincinnati’s four homers as the Reds won a rout at St. Louis.

Steve Selsky went 5 for 5 including a homer, four RBI and scored three runs. He’s the first Reds rookie to have five hits in a game since Wade Rowdon against the Mets on July 9, 1986.

DIAMONDBACKS 14, NATIONALS 4: Jean Segura had two homers and Yasmany Tomas hit a three-run shot and drove in two more runs with a double. Mitch Haniger and Jake Lamb also homered for Arizona as Washington pitchers gave up a season-high five home runs.

INTERLEAGUE

BREWERS 8, RANGERS 3: Jonathan Villar had two home runs and a career-high five RBI and Matt Garza beat his former team as Milwaukee won at Arlington, Texas.

The loss dropped American League West-champion Texas one-half game behind the Boston Red Sox in the race for the league’s best record. The Cleveland Indians pulled within one-half game of the Rangers.