Hardy gets 4 hits and Orioles get HRs from Joseph, Markakis in 7-3 win over Nationals

Washington Nationals' Denard Span gestures after he doubled against the Baltimore Orioles during the third inning of a baseball game, Monday, Aug. 4, 2014, in Washington. (AP Photo/Nick Wass) (The Associated Press)

Washington Nationals starting pitcher Tanner Roark (57) delivers a pitch against the Baltimore Orioles during the first inning of a baseball game, Monday, Aug. 4, 2014, in Washington. (AP Photo/Nick Wass) (The Associated Press)

Caleb Joseph homered and drove in three runs, J.J. Hardy had four hits and the Baltimore Orioles beat the Washington Nationals 7-3 on Monday night in a duel between neighboring first-place teams.

Nick Markakis homered for the Orioles, who trailed 3-1 before rallying for their eighth win in 11 games.

Hardy and Ryan Flaherty opened the seventh with successive doubles off Tanner Roark (11-7) to tie it at 3. Delmon Young followed with an RBI single — making him 9 for 17 as a pinch-hitter this season — and Adam Jones capped the uprising with a run-scoring single, Baltimore's sixth hit of the inning.

Joseph singled in two runs in the eighth to make it 7-3.

Kevin Gausman (6-3) gave up three runs and eight hits in six innings for the Orioles.