WASHINGTON (AP) Anthony Rendon lined a two-run single with one out in the ninth inning and the Washington Nationals rallied past the Miami Marlins 7-6 on Friday night for their seventh win in eight games.

Rendon had three hits and drove in three runs, giving him 107 RBIs for the NL wild-card leaders. The Marlins set a franchise record with their 13th straight road loss.

After Starlin Castro hit a two-run homer off Daniel Hudson (8-3, 2-0 with Washington) in the top of the ninth for a 6-5 lead, the Nationals bounced back.

Howie Kendrick led off with a single against Ryne Stanek (0-3, 0-2 for the Marlins) and Trea Turner followed with a walk. After Gerardo Parra popped out on a bunt, the runners advanced on a passed ball. Rendon then singled to left, with Turner sliding in ahead of the throw.

Harold Ramirez homered and had two singles for the Marlins.

Juan Soto's two-out double in the seventh inning gave Washington a 5-4 lead. The Marlins had tied it with two runs in the top half on an RBI single by Castro and a bases-loaded walk by Isan Diaz.

Washington starter Anibal Sanchez allowed two runs on three hits across five innings, while striking out six and walking four.

Miami's Elieser Hernandez gave up four runs on six hits over six innings. He retired 12 straight during one stretch.

Ramirez homered in the first inning but the Nationals took a 2-1 lead after they started the bottom of the first inning with three straight singles.

MOVES

The Nationals reinstated left-hander Roenis Elias (right hamstring strain) from the 10-day injured list and right-handed reliever Hunter Strickland from the paternity list. They optioned catcher Spencer Kieboom to Double-A Harrisburg and designated left-handed reliever Matt Grace for assignment. Grace, the Nationals' eighth-round pick in the 2010 draft, went 5-4 with two saves and a 4.29 ERA in 178 career games for Washington. This season, he was 1-2 with a 6.36 ERA in 51 games.

TRAINER'S ROOM

Marlins: SS Miguel Rojas (right hamstring strain) was 1 for 3 on Thursday in a rehabilitation game for Triple-A New Orleans. Rojas is hitting .278 (5 for 18) in five rehab games over two minor league levels and could be activated when rosters expand Sunday. ... OF/SS J.T. Riddle halted his rehabilitation assignment after experiencing right forearm soreness. Riddle has missed 41 games since going on the injured list July 18.

Nationals: Closer Sean Doolittle (right knee tendinitis) pitched a 1-2-3 sixth inning in a rehab appearance for Class A Potomac. ... RF Adam Eaton, who was hit below the right knee by a pitch on Wednesday, was kept out of the starting lineup but walked as a pinch-hitter in the seventh. . Manager Dave Martinez said 1B Ryan Zimmerman (plantar fasciitis) is with the team and could be activated on Sunday.

UP NEXT

Marlins: RHP Pablo Lopez (5-6, 4.41 ERA), who gave up four runs in five innings Monday against the Cincinnati Reds in his first start since missing more than two months, gets the nod as the three-game series continues.

Nationals: RHP Stephen Strasburg (15-5, 3.63) is 3-0 with a 1.61 ERA in three starts versus Miami this season and has a 11-game winning streak against the Marlins going back to 2015.

---

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports

Copyright 2019 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.