Updated

The sixth inning was one out away from ending, and the Detroit Tigers had only two hits off Jeremy Guthrie and trailed by four runs.

Then, quite unexpectedly, the Tigers put together a string of six consecutive hits in what would turn out to be their biggest comeback victory of the season.

Miguel Cabrera homered in a five-run sixth, and Detroit rallied from a five-run deficit to beat the Baltimore Orioles 6-5 Saturday night.

Down 5-0 in the second inning, the Tigers got a fourth-inning run and took the lead for good in the sixth.

"It was a heck of a comeback for us, obviously," manager Jim Leyland said. "We play hard. We play nine innings. That's been the theme ever since I've been here."

Detroit's previous biggest comeback win of the year was from three runs down. This victory enabled the Tigers to maintain their three-game edge over Cleveland in the AL Central.

"The guys didn't quit. I'm proud of them," Leyland said. "This could have been a tough game for them."

Cabrera finished with three RBIs for the Tigers, whose last eight wins have all been by one run — a club record.

Guthrie (5-16) took a two-hitter and a 5-1 lead into the sixth. He retired the first two batters before Magglio Ordonez doubled and Cabrera hit the next pitch over the right-field wall. Victor Martinez and Jhonny Peralta followed with singles, and Alex Avila hit a ground-rule double on a 3-0 pitch to cut the deficit to 5-4.

Ryan Raburn concluded the onslaught and chased Guthrie by grounding a two-run single up the middle.

"Early in the game he was getting ahead and getting us to chase pitches that he wanted," Raburn said of Guthrie. "That inning we more or less made him throw the pitches we wanted to hit and got ahead in the count. I was able to hit a mistake."

Guthrie was exceptional for 5 2-3 innings. Then he wasn't.

"Just centered a lot of balls," Orioles manager Buck Showalter said.

"I thought a portion of them were executed pretty well and they just were able to put a good swing on them anyway," Guthrie said. "But certainly there were some that caught a lot of the plate as well."

Max Scherzer (12-7) got the victory despite yielding five runs in the second inning. The right-hander gave up four earned runs and seven hits over seven innings, striking out a season-high 10 and walking none.

Scherzer finished his outing by striking out J.J. Hardy with two outs and two on. Walking off the mound after his 120th pitch, he emphatically pounded his fist into his glove.

The 12 wins matches his career high for a single season, set last year.

Phil Coke worked a perfect eighth and Jose Valverde got three outs for his 35th save in 35 tries.

Rookie Blake Davis hit his first major league homer and Vladimir Guerrero also connected for the Orioles, who have lost nine of 11. By dropping the first two games of the three-game set, Baltimore is 0-12-1 in its last 13 series since June 26.

In absorbing his major-league leading 16th defeat, Guthrie failed to go seven innings for the first time in six starts since July 14.

Adam Jones led off the Baltimore second with a single and Guerrero followed with his 10th home run, the first since July 30. Matt Wieters singled and advanced on an error by Raburn, who fielded a grounder at second base and made an errant flip to shortstop Peralta with his glove.

One out later, Blake hit a three-run, opposite-field drive that barely cleared the glove of leaping left fielder Andy Dirks. The ball bounced back onto the field from beyond the wall, and the umpires reviewed the hit on a replay before deeming it a home run.

It was his first long ball in 53 at-bats and the highlight of Baltimore's first five-run inning since July 18.

The Tigers got a run in the fourth when Dirks doubled, took third on a groundout and scored on a sacrifice fly by Cabrera.

NOTES: Detroit RHP Al Alburquerque was released from the hospital with a concussion after being struck by a line drive during batting practice on Friday. He was to be driven back to Detroit on Sunday because doctors advised him not to fly. ... Former Baltimore SS Mike Bordick was formally inducted into the Orioles Hall of Fame in a pregame ceremony. ... Ordonez is 7 for 13 lifetime against Guthrie. ... Detroit will send Doug Fister (4-12) to the mound Sunday looking for a sweep. The Orioles will counter with Jo-Jo Reyes, making his second start for Baltimore since being acquired on waivers from Toronto.