Nolan Reimold's RBI single in the sixth inning champion Detroit Tigers, 6-5, in the opener of a four-game series.
Reimold added a sacrifice fly in the fourth for the Orioles, who have won three in a row and eight of their last 10. Adam Jones and J.J. Hardy homered.
Baltimore starter Zach Britton (11-10) gave up five runs on six hits over five innings to pick up the win.
"A lot of teams will fold up after giving up a 5-0 lead, especially against a club like this," said Baltimore manager Buck Showalter. "But our guys showed their toughness tonight."
Delmon Young hit a three-run homer for the Tigers, who have lost two of three.
Detroit starter Jacob Turner allowed five runs -- four earned -- on seven hits over three-plus innings. David Pauley (5-6) gave up one run on two hits over two relief frames to take the loss.
"We got some things we wanted to but we didn't get the win," said Detroit manager Jim Leyland. "You know, we bounced back and played good, but you have to give them the credit tonight."
The O's took the lead for good in the sixth. Jones singled, stole second, moved to third on a groundout and crossed the plate on Reimold's infield single to third.
The Orioles got on the board in the first inning. Hardy singled, moved to third on Nick Markakis' base hit and scored on Vladimir Guerrero's sacrifice fly.
Hardy's homer to left in the second made it a 2-0 game.
Baltimore tacked on three more runs in the fourth to build a 5-0 margin. Matt Wieters led off with a single and scored on Jones' homer to left. Mark Reynolds walked and Chris Davis reached first on Miguel Cabrera's fielding error. Reimold knocked in Reynolds with a sacrifice fly.
The Tigers got a run back in the home fourth. Young and Cabrera walked to start the frame. Young went to third on a wild pitch and scored on Victor Martinez's groundout.
Detroit added four runs in the fifth to tie the game. Brandon Inge walked and Omir Santos singled to get things going. The runners moved up a base on a sacrifice bunt. Magglio Ordonez hit an RBI single before Young homered to left for a 5-5 game.
Coming into Thursday's game, Britton had not allowed a home run in his last 40 2/3 innings pitched dating back to July 30. That streak came to an end when Britton gave up a homer to Young in the fifth. It was the longest homerless streak for a Baltimore starting pitcher since Daniel Cabrera went 56 2/3 innings without allowing a homer spanning the 2006 and 2007 seasons...The O's have taken four of seven from the Tigers this season.