WASHINGTON — Jayson Werth homered and drove in three runs, and Clint Robinson added a pinch-hit home run as the Nationals had 13 hits and rallied past the Marlins 7-4 on Sunday.
Michael Taylor added two singles and scored twice for Washington, which got hits from all eight starting position players.
Doug Fister (5-7) pitched two scoreless innings in relief of Stephen Strasburg for the win.
Strasburg was lifted after throwing 60 pitches in four innings. He gave up four runs on seven hits.
Miami starter Brad Hand (4-4) allowed five runs on eight hits over 4 2-3 innings.
Jonathan Papelbon pitched around two hits in the ninth for his 22nd save.
The Nationals remain 5 1-2 games behind the Mets in the NL East.
Justin Bour hit a three-run homer and Derek Dietrich added a solo shot for the Marlins, who have lost 8 of 10.
Hand, who had won three of his last four starts, fell to 0-6 with a 7.96 ERA in 10 games versus Washington.
The Nationals went 6-3 on their nine-game homestand against the Brewers, Padres and Marlins and begin a three-game series Monday at NL Central-leading St. Louis.
They then return home to face the Braves and Mets.
The Nationals pulled ahead in the fifth. Werth doubled home Taylor and scored on a single by Bryce Harper to tie it.
After Ryan Zimmerman singled Harper to third, Ian Desmond — who also drew three walks — singled to center, scoring Harper to put Washington up 5-4.
Robinson's two-run blast in the sixth provided some cushion.
Strasburg had gone 3-1 with a 1.73 ERA in four starts since coming off the disabled list after missing more than a month with an oblique strain.
After giving up five earned runs in those four starts, he was touched for three in the first inning Sunday.
Dee Gordon led off with a bunt single and went to third on Ichiro Suzuki's double. One out later, Bour homered to right-center for a 3-0 Marlins lead.
Washington got to Hand in the third when Taylor singled and Werth lined a 3-2 pitch into the Nationals bullpen to make it 3-2.
Dietrich homered into the second deck in right to open the fourth.
Marlins: OF Christian Yelich (bruised right knee) was out of the starting lineup for the fourth straight game, but singled as a pinch hitter in the ninth.
Nationals: Taylor (bruised right knee) returned to the starting lineup after missing Friday's game and pinch hitting on Saturday. . INF Yunel Escobar (right hand) missed his third straight game.
Marlins: LHP Chris Narveson (1-1, 7.04 ERA) makes his second start of the season when the Marlins begins a three-game series at Atlanta.
Nationals: LHP Gio Gonzalez (9-7, 4.11 ERA) looks to snap a personal three-game losing streak when Washington opens a series at St. Louis. Gonzalez has allowed 14 earned runs in 12 1-3 innings over his last three starts.