The Baltimore Orioles took three of four from the New Yankees but it took extra effort to do it at Yankee Stadium.
After losing the first two the Yankees were looking to even the series and had a 5-0 lead in the series finale.
But the Birds fought back and a single by Craig Gentry in the 12th inning brought in Pedro Alvarez and gave Baltimore an 8-7 lead.
The Yankees then loaded the bases with no outs in the bottom half of the inning.
But the Birds completed a rare home to third double play and Orioles closer Brad Brach then fanned new Yankee Giancarlo Stanton which allowed Baltimore to celebrate a hard fought 8-7 series-clenching victory.
Baltimore was led at the plate by Anthony Santander who went three for six with three RBI including his first home run of the season, a two-run shot that gave his team a 7-6 lead in the 7th.
Danny Valencia also hit his first homer a two-run blast which scored Adam Jones and cut the Birds deficit to 5-4 in the fifth.
Manny Machado and Tim Beckham each knocked in a run to complete the Birds scoring.
After New York knocked out Orioles starter Mike Wright in the first inning the Birds used five relievers who struck out 10 and limited the tough Yankee lineup to two runs.
The Orioles opened the series with a 5-2 victory which snapped a brutal early five game losing streak.
Baltimore scored all of their runs in the seventh inning led by a Jones two-run homer.
Trey Mancini batting lead off went three for five with two RBI.
Baltimore starter Andrew Cashner made up for his poor Baltimore debut by striking out five walking two and allowing two hits in six innings of work.
Reliever Mychal Givens and Darren O’Day kept the Yankees in check and Brach came in to earn his first save of the year.
The Orioles won the second game of the four game series 7-3 on a grand slam home run by Alvarez in the 14th inning.
The Yankees avoided a sweep by winning the third game of the series 8-3. Machado had two RBI and Orioles starter Chris Tillman struggled with his command.
He surrendered eight hits five runs and four walks while striking out three in 5.1 inning of work.
Tillman is trying to bounce back from a poor 2017 season but is getting off to a rough start and is (0-2) with an 8.68 ERA.