WASHINGTON -- Jean Segura had three hits, including two homers, and drove in three runs and Yasmany Tomas had two hits, including a homer, and drove in five runs as the last-place Arizona Diamondbacks hit five homers to beat the Washington Nationals 14-4 on Monday night.
The winning pitcher was Zach Godley (5-4), who came out of the bullpen to pitch three scoreless innings while allowing just one hit. Segura hit a two-run homer off rookie reliever Lucas Giolito to make it 12-4 in the eighth and Jake Lamb followed with a solo shot.
Chris Owings had an RBI groundout in the ninth for Arizona to make it 14-4.
Washington catcher Wilson Ramos was taken out of the game in the top of the sixth inning when he appeared to injure his right leg.
With runners on first and second and one out, Tomas hit a two-run double to right. As Brandon Drury scored the second run, Ramos tried to catch the ball on the relay and fell awkwardly on the first-base side of the plate, pointing to his right leg near the knee once he was on the ground as the Diamondbacks took a 7-4 lead.
Ramos was helped off the field by two members of the athletic training staff and was replaced by Pedro Severino. Ramos, in the last year of his contract, entered the game hitting .307 with 22 homers and 80 RBIs. Washington right fielder Bryce Harper and infielder Daniel Murphy didn't play because of injuries.
Later in the inning, Owings drove in a run with a single and Mitch Haniger had a two-run homer off reliever Yusmeiro Petit to take a 10-4 lead. Drury and Lamb added two hits in the game.
The losing pitcher was Washington starter Tanner Roark (15-10), who had his shortest outing since he went three innings on June 5 at Cincinnati. Trea Turner had three hits and Ryan Zimmerman had two for the Nationals, who are just one game ahead of the Los Angeles Dodgers for the second-best record in the National League.
Arizona (65-91) snapped a three-game losing streak and is 17-13 against the National League East. The Nationals (91-65) fell to 13-17 against the National League West.
Washington was playing its first home game since clinching the NL East title on Saturday in Pittsburgh.
Rookie Brian Goodwin had his first career triple in the second to drive in a run and give Washington a 1-0 lead.
The Diamondbacks scored five runs in the fourth to take a 5-1 lead.
Jean Segura led off with a homer -- his 18th of the season-- and Brandon Drury had an RBI single with one out to drive in Jake Lamb, who walked.
Yasmany Tomas followed with a three-run homer to center off Roark. It was the 30th homer of the year for Tomas, who hit just nine in 118 games last year.
Washington answered with three runs in the bottom of the fourth to trim the margin to 5-4. Goodwin walked with the bases loaded and Trea Turner had a two-run double off Bradley.
Bradley allowed six hits and four runs with four walks in 3 2/3 innings before he was removed. Bradley gave up 12 hits and eight runs (seven earned) against Washington on Aug. 1 in a 14-1 loss to the Nationals in Arizona.
Roark was lifted for a pinch hitter in the fourth after he gave up five runs and four hits in four innings. The right-hander had allowed two runs or less in his previous five starts.
Crew chief and third base umpire Fieldin Culbreth called for the tarp to be put on the infield after one pitch in the top of the sixth.
NOTES: A moment of silence was held before the game for Marlins RHP Jose Fernandez, who died Sunday in a boat accident off the coast of Miami. ... Washington RF Bryce Harper, the 2015 National League MVP, was not in the starting lineup after he suffered a thumb injury during a slide into third base in the third inning on Sunday in Pittsburgh. Harper, batting .244 with 24 homers, left the game later in the third inning and Nationals manager Dusty Baker said before Monday's game that he did not have any information on X-rays. ... Nationals INF Daniel Murphy, an MVP candidate this season, was out of the lineup again with a strained buttocks and has not played since Sept. 20. Baker said he expects Murphy to be ready for the playoffs, which begin Oct. 7. Murphy is batting .347 with 25 homers and 104 RBIs. ... Arizona RHP Rubby De La Rosa (right arm discomfort) saw Dr. James Andrews on Monday in Alabama and he will have a stem cell injection on Tuesday, according to manager Chip Hale. De La Rosa is done for the year after going 4-5 with a 4.26 ERA in 13 games, including 10 starts. ... Hale said RHP Zack Greinke (13-7, 4.37), who has a sore shoulder, most likely won't pitch again this season. He last pitched Sept. 21 at San Diego. ... Washington RHP Max Scherzer (18-7, 2.82) will face Arizona RHP Matt Koch (1-1, 1.29) on Tuesday. It will be the first major league start for Koch, a rookie who has worked in five games out of the bullpen. ... Arizona 3B coach Matt Williams, a former Nationals manager, greeted Baker before the game near the batting cage. "We have been friends for a long time," Williams said. "I am happy for" the Nationals. ... Washington LHP Sammy Solis came off the disabled list. The Nationals also traded minor league INF Chris Bostick to the Pittsburgh Pirates for C Taylor Gushue.