Updated

WASHINGTON (AP) Rookie Trea Turner hit his 13th homer, Tanner Roark tuned up for the playoffs with 5 2/3 innings of one-run ball and the Washington Nationals beat the Miami Marlins 2-1 on Saturday while clinching home-field advantage for the NL Division Series.

NL East champion Washington's third trip to the postseason in five years will begin Friday in the nation's capital against the NL West champion Los Angeles Dodgers, with Max Scherzer slated to face Clayton Kershaw. Game 2 is the following day, before the best-of-five NLDS shifts to L.A.

The Nationals, it turned out, didn't need to beat the Marlins - which they did, thanks to Turner, Roark (16-10) and Bryce Harper's RBI single. The Dodgers' 3-0 loss to the San Francisco Giants, assuring Washington of finishing with a better record than Los Angeles, was announced before the bottom of the seventh to the Nationals Park crowd of 31,635, which responded with a standing ovation.

Wei-Yin Chen (5-5) allowed two runs in five innings.

Mark Melancon got the last four outs for his 46th save.