BALTIMORE (AP) -- Nate McLouth homered leading off the bottom of the 10th inning, Chris Dickerson hit a pair of solo shots and the Baltimore Orioles beat the New York Yankees 3-2 Tuesday night to snap a six-game losing streak.
McLouth hit a 1-1 pitch from Vidal Nuno (1-1) into the bleachers in right-center to give the Orioles their first win since May 12.
Jim Johnson (2-4), who blew three save opportunities during the six-game skid, got three straight outs in the 10th. His performance capped an exceptional effort by Orioles pitchers, who retired 21 of the last 22 New York batters.
Dickerson connected off Phil Hughes in the third and fifth innings, the first two-homer game of his career.
Travis Hafner drove in both runs for the Yankees, who fell to 19-1 when scoring first.
Hughes allowed two runs and five hits in six innings. Coming off a horrid start against Seattle in which the right-hander yielded seven runs and got only two outs, Hughes kept the Orioles in check -- except for Dickerson.
Baltimore starter Miguel Gonzalez gave up two runs and five hits over seven innings, striking out five and walking none. The right-hander came off the disabled list before the game following an 18-day absence with a blister on his right thumb.
New York got a first-inning run when Brett Gardner doubled and scored on a two-out single by Hafner. Dickerson tied it with a drive to right-center on a 3-2 pitch.
The Yankees quickly moved back in front. Vernon Wells led off the fourth with a double and Hafner followed with an RBI single.
Dickerson's second homer of the game, leading off the fifth, made it 2-all.
Gonzalez retired 11 straight batters before David Adams singled with two outs in the seventh. Lance Nix followed with a liner that right fielder Nick Markakis snagged with a dive.
NOTES: To clear a roster spot for Gonzalez, the Orioles optioned RHP Jair Jurrjens to Triple-A Norfolk. Jurrjens started one game for Baltimore, receiving a no-decision Saturday against Tampa Bay. ...RHP Hiroki Kuroda will start for New York on Wednesday night in the finale of the three-game series. The Orioles will start Jason Hammel, who is 0-2 with a 7.79 ERA in three home starts. ... Yankees manager Joe Girardi said SS Derek Jeter (left ankle) "is not really doing anything yet" and LHP Andy Pettitte (strained trapezius muscle) has not starting throwing. ... Orioles C Matt Wieters turned 27 on Tuesday.