MINNEAPOLIS (AP) — Manny Machado had a tiebreaking RBI single in Baltimore’s three-run 10th inning as the Orioles rallied for a 9-6 win over the Minnesota Twins on Friday night.

Machado — who stayed in the game after fouling a ball off his ankle in the fifth — rolled a single into right field that scored Chris Dickerson and broke a 6-all tie. Nick Markakis added a sacrifice fly and Adam Jones an RBI double to cap the scoring in the 10th.

Tommy Hunter (3-1) didn’t allow a run in 2 1-3 innings. Jim Johnson pitched a scoreless bottom of the 10th for his 35th consecutive save — dating back to last season — to set an Orioles franchise record.

Anthony Swarzak (1-1) allowed all three runs in the 10th.

Twins starter Mike Pelfrey had a 6-0 lead in the sixth inning and appeared to be cruising to his second straight win before Baltimore started smacking doubles all over the field.

The Orioles hit four doubles off Pelfrey in the sixth to make it 6-3 and added two more off reliever Josh Roenicke in the seventh to tie the score.

Chris Davis’s two-bagger off the scoreboard wall in right-center field scored Nick Markakis and made it 6-6.

Roenicke started the seventh and allowed three runs and four hits and only recorded one out.

Markakis — a career .512 hitter against the Twins — started the barrage of doubles with a leadoff double in the sixth and finished with two hits and two RBIs.

Joe Mauer had three hits and two RBIs for Minnesota, which had won four of its previous five.

Adam Jones and Davis each had three hits for Baltimore.

Orioles starter Jason Hammel allowed six runs over four innings and failed to win on the road for the first time this season.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.