MIAMI -

Bryce Harper homered twice for the first time in his career and the first-place Washington Nationals snapped a five-game losing streak by beating the Miami Marlins 8-4 Wednesday night.

Harper hit a two-run homer in the fourth inning and added a solo homer in the fifth, giving the rookie 14 this season. He had a chance for a three-homer night but grounded into a double play in the ninth, spiked his helmet in frustration after crossing the bag and was ejected by umpire C.B. Bucknor.

Before the game, manager Davey Johnson called a brief team meeting, which he described as upbeat. The pep talk stirred the Nationals' bats, and they had 14 hits.