With their bullpen tired and hurting, the Orioles needed Jason Hammel to give them an extended start. He answered with an eight-inning outing, equaling the team’s longest of the season.

Hammel’s effective eight were not only badly needed by the team, but he needed them for his confidence. While Hammel had gone six in seven of his first 10 starts, he had yet to complete even seven.

The Orioles backed Hammel with 14 hits, beating the Nationals 6-2 before a sellout crowd of 41,260 at Nationals Park on Monday afternoon.

Hammel (7-2) allowed two runs on eight walks, struck out a season-high eight, which was also a team high and didn’t walk a batter. The eight innings equaled a team high.

He's now 6-0 lifetime with a 3.15 ERA against the Nationals.

Darren O’Day finished up with a scoreless ninth.

The Nationals (26-25) scored a run in the second off Hammel. Adam LaRoche led off with a single and stole second. LaRoche scored on a one-out double by Tyler Moore.

In the fourth, the Orioles (28-23) scored three off Gio Gonzalez (3-3). Chris Davis led off with a walk. Matt Wieters singled him to third. With one out, Yamaico Navarro singled to drive in Davis. After Hammel bunted Navarro to second, Nick Markakis extended his hitting streak to 12 with a single that scored Wieters and Navarro to make it 3-1.

In the fifth, Adam Jones doubled to lead off. He moved to third on Davis’ single and a sacrifice fly by Wieters.

In the bottom of the sixth, Denard Span led off with a triple, and scored on Ryan Zimmerman’s one-out single.

In the seventh, Davis and Wieters began the inning with singles off Craig Stammen. Navarro’s RBI single scored Davis for a 5-2 lead.

Gonzalez pitched 5 2/3 innings, allowing four runs on eight hits, walking four and striking out three.

In the eighth, the Orioles scored their sixth run against Henry Rodriguez. Manny Machado led off with a single. It was his third hit, giving him 23 multi-hit games. Machado stole second. J.J. Hardy walked, scored on Jones’ single.