Machado caps O's 4-HR rally with walk-off

Machado caps O's 4-HR rally with walk-off

BALTIMORE -- After having been crowned the American League's Player of the Month for August, Manny Machado is showing no signs of slowing down.

Machado hit a two-out, two-run homer -- his second blast of the game -- off Dellin Betances in the bottom of the ninth inning to complete the Orioles' comeback from a five-run deficit, allowing them to walk off with a 7-6 victory over the Yankees in the wee hours of Wednesday morning. The long, arduous win -- which started with a two-hour, 14-minute rain delay -- finished a few minutes before 1 a.m. ET.

• O's walk-off hero offers Manny happy returns

"We're confident with everyone we have in here," said Machado, who has 14 home runs and 38 RBIs since Aug. 1. "We're going to do everything possible, keep playing like a team and do the things that count, and things will turn out the way they need to. We just need to control going out there and giving it our all."

Must C: Machado's jacks lift O's

The win kept the O's a game behind the Angels for the second American League Wild Card, with the Yankees falling 3 1/2 back of the Red Sox in the AL East race. The Yanks saw their lead for the first AL Wild Card cut to 2 1/2 over the Angels, falling one out shy of breaking their own hex at Camden Yards. New York has not won a series in Baltimore since the beginning of the 2014 season.

After recording the first two outs of the ninth, Betances walked Tim Beckham on five pitches before Machado made Betances pay for hanging a 1-0 breaking ball.

"He's a really good hitter. He's a great hitter, obviously," Betances said. "When you leave a pitch like that to a guy like that, he's going to usually punish it. That's what he did tonight."

• Betances blows save after Chapman cruises

Machado -- who has a team-leading 32 homers -- also went deep in the third inning, trading blasts with close friend and teammate Jonathan Schoop. Schoop went yard in the fifth off Yankees starter CC Sabathia, with Mark Trumbo belting a two-run homer in the sixth to bring Baltimore within a run.

Schoop's 31st roundtripper

"It was just one of those nights," Sabathia said. "When we made mistakes, they didn't miss them."

Sabathia went 5 1/3 innings and allowed five earned runs on eight hits. He lasted much longer than Orioles starter Jeremy Hellickson, who recorded just seven outs. Hellickson walked four and allowed five runs (three earned). Ubaldo Jimenez tossed a scoreless sixth inning in his return to the bullpen.

The Yankees jumped on Hellickson's early command woes, as a key third-inning error by center fielder Adam Jones and Didi Gregorius' two-run single helped chase the right-hander. New York tacked on after reliever Richard Bleier entered with the bases loaded, taking what appeared to be a commanding five-run lead.

Castro scores on an error

"[There were] some great innings pitched out of our bullpen tonight to hold them," Orioles manager Buck Showalter said. "It's a tough lineup to hold down."

MOMENTS THAT MATTERED
Manny Magic: Machado again played the part of hero, picking up his third walk-off homer in 19 days, having launched blasts on Aug. 18 against the Angels and Aug. 23 against the Athletics. Machado has 14 homers since Aug. 1 and has been a critical component of the O's success.

Machado on his clutch home run

"I'm just looking for something up I can do damage with," Machado said. "I'm up in the count. Just looking for a good pitch I can hit."

Brach's escape: Orioles reliever Brad Brach got into trouble as the Yankees attempted to pad their lead in the eighth inning. Jacoby Ellsbury led off with a single and Brett Gardner legged out a one-out infield hit, but Brach recovered to strike out Aaron Judge looking and induced Starlin Castro to foul out, keeping the deficit at one run.

QUOTABLE
"This is a huge game for us. This is the time of the year, if you're going to make a push, we need to do it now. It was a picture-perfect inning. You couldn't ask for anything more. The fact that we stayed close in the game and kind of built up a little momentum is pretty cool, too." -- Trumbo

SOUND SMART WITH YOUR FRIENDS
The last player with three walk-off homers in as short of a span as Machado was Sammy Sosa, who had three walk-off homers in 1996 (also 19 days).

WHAT'S NEXT
Yankees: Sonny Gray (8-9, 3.36 ERA) draws the starting call for the Yankees in Wednesday's 7:05 p.m. ET series finale. The right-hander will hope for better results than his last outing, in which he tied a career high by serving up three home runs in a 4-1 loss to the Red Sox.

Orioles: The Orioles will send Kevin Gausman to the mound Wednesday night in the series finale against the Yankees. Gausman was an afterthought in Friday's 13-inning win against Toronto, but the righty has been solid. Gausman owns a 2.55 ERA and has struck out 16 over his last 17 2/3 innings.

Watch every out-of-market regular-season game live on MLB.TV.

Brittany Ghiroli has covered the Orioles for MLB.com since 2010. Follow her on Facebook and Twitter @britt_ghiroli, and listen to her podcast.

Bryan Hoch has covered the Yankees for MLB.com since 2007. Follow him on Twitter @bryanhoch and on Facebook.

This story was not subject to the approval of Major League Baseball or its clubs.