WASHINGTON -- Hanley Ramirez doubled in Adrian Gonzalez in the top of the 10th inning to break a tie and Andre Ethier added a sacrifice fly for an insurance run as the Los Angeles Dodgers beat the Washington Nationals 3-1 on Saturday night.
Gonzalez led off the 10th with a double down the left field line against reliever Craig Stammen (5-5), who then gave up a blistering line drive by Ramirez to left center. Ramirez advanced to third on a groundout and Ethier hit a sac fly to left against reliever Ian Krol as the throw to the plate by Bryce Harper hit Ramirez as he scored standing.
The Dodgers (49-47) have won eight of the last 10 and are 19-5 in the last 24 games. Washington (48-49) has lost seven of nine after scoring just once on 10 hits.
Rookie Chris Withrow (1-0), who made his big league debut on June 12, got his first win in the majors after he pitched a scoreless ninth for the Dodgers in his seventh outing. Kenley Jansen pitched the bottom of the 10th for his 11th save.
Mark Ellis of the Dodgers singled to left with two outs in the seventh against reliever Drew Storen to tie the score 1-1.
Pinch-hitter Roger Bernadina had broken a scoreless tie in the bottom of the sixth with a bloop single to right with two outs to score Chad Tracy and give Washington a 1-0 lead against Dodgers starter Zack Greinke.
Washington starter Gio Gonzalez, who had won his four previous starts, tied his career high with 11 strikeouts. He did not allow a run before he was lifted for Bernadina.
Tracy, in a rare start, had two singles and a double in his first three at-bats against Greinke. That gave Tracy six hits in eight at bats in his career against Greinke, who was denied in his bid for career victory No. 100. Greinke allowed one run in six innings.
Greinke, who had not allowed a run in 16 innings leading into the game, gave up five hits in the first five innings.
He also hit a doubled in his first at-bat and singled in his second at-bat against Gonzalez. Gonzalez recorded his 10th strikeout when he fanned Adrian Gonzalez to lead off the sixth.
The Nationals left six runners on base in the first three innings after going 1-for-9 with runners in scoring position on Friday. Washington loaded the bases in the first with one out, but Jayson Werth and Ian Desmond popped out to end the threat.
Dodgers rookie sensation Yasiel Puig entered the game with an average of .381 after going hitless in four at-bats on Friday. Puig grounded out in the first, struck out in the third and then struck out for the last out of the fifth with Greinke running from first on a 3-2 count.
NOTES: On July 20, 1987, when he was with the New York Yankees, Don Mattingly, now the Dodgers' manager, set a major-league record for first basemen with 22 putouts in a nine-inning game. The starting pitcher that day was Tommy John, a ground-ball pitcher. ... Trey Hillman, the bench coach for the Dodgers, was the manager of the Prince William Cannons of the Carolina League in 1993 in Woodbridge, Va. -- about 30 miles south of Nationals Park. That team is now called the Potomac Nationals and is the Washington affiliate in the Carolina League. ... Adam LaRoche, the regular first baseman for the Nationals, was out of the lineup for the second game in a row. Tracy, hitting .149 at game time, got the start again at first for Washington. ... The Nationals had not homered in five games before Saturday. The last time Washington went six games without a long ball was June 1-6, 2010.