BALTIMORE -- Manny Machado hit a grand slam off Keynan Middleton with one out in the bottom of the ninth inning, the third baseman's third homer of the night, to give the Baltimore Orioles a come-from-behind 9-7 victory over the Los Angeles Angels on Friday.
The Orioles (60-62) and Angels (62-60) both hit five homers in the game, but Machado's blast in the ninth was the biggest.
Middleton (4-1) left a pitch where Machado could get it and he sent a shot over the fence in center.
Machado also hit a solo homer and a two-run homer and finished with seven RBIs.
Darren O'Day (2-3) picked up the victory for Baltimore.
Mike Trout and Albert Pujols each hit two-run homers for the Angels.
The Angels were ranked next to last in the American League in homers but hit four in the first two innings and five in the first five. Kole Calhoun, C.J. Cron and Kaleb Cowart also homered.
The Angels hit all five of their homers off Orioles starter Jeremy Hellickson. He allowed seven runs and eight hits in 4 2/3 innings.
Also, this was the 38th time in team history the Angels have hit at least five homers in a game.
The Orioles also got solo homers from Mark Trumbo and Caleb Joseph. Four of their five homers came against Angels starter Andrew Heaney in his first appearance this season.
The homers started flying out of the park quickly after rain delayed the start of the game by 42 minutes.
Pujols hit a two-run homer with one out in the top of the first and Calhoun added a solo shot on the next pitch, giving the Angels a 3-0 lead.
Cron sent a solo homer to left on Hellickson's first pitch in the second, making it 4-0. Two batters later, Cowart ended an 0-for-14 skid with a solo homer to right.
But the Orioles then used their own power to bounce back.
Trumbo made it 5-1 with a second-inning solo homer off Heaney. Joseph led off the third with a homer and Machado's two-run shot later in the inning cut the Angels' lead to 5-4.
The Angels then stretched the margin to 7-4 in the fifth with their fifth homer of the night, a two-run blast from Trout.
Machado belted his second homer in the game leading off the fifth, making it 7-5.
NOTES: Orioles SS Tim Beckham was honored before the game after being named the American League Player of the Week on Aug. 7. ... The Orioles are celebrating the 25th anniversary of the opening of Camden Yards this weekend with number of players from the 1992 team back in town. ... Angels LHP Tyler Skaggs was placed on the bereavement list (three days) on Friday after the death of his grandfather. ... DH Albert Pujols tied Sammy Sosa for eighth place on the career home run list (609) with his two-run shot in the first inning. The two also are tied for first for most career homers by a foreign-born player.