The Nationals and Braves split the four-game series 2-2. Michael A. Taylor was 1-for-4 with a home run in the victory. Trea Turner, Anthony Rendon and Daniel Murphy each had two hits for the Nationals.
Nick Markakis started the scoring, hitting a solo home run off of Gonzalez in the top of the second inning. Nationals rookie sensation Juan Soto tied the score by taking a bases-loaded walk in the bottom of the third inning. Rendon plated Adam Eaton on a sacrifice fly later in the inning, giving Washington a 2-1 edge.
Taylor hit his sixth home run of the season in the bottom of the fourth frame. Daniel Murphy plated Rendon with an RBI double in the bottom of the sixth inning, giving Washington a 4-1 advantage.
Braves rookie Ronald Acuna Jr. hit his 13th home run of the season in the top of the eighth frame to cut the deficit in half.
Dansby Swanson brought in the final run of the game, scoring the Braves' Kurt Suzuki in the top of the ninth inning on a sacrifice fly.
Gonzalez allowed six hits while tossing three strikeouts to earn his seventh victory of the season.
"If [Gonzalez] keeps us in the ballgame, we have a chance to win," Nationals manager Dave Martinez told reporters. "He did that. I wanted to get him out and make sure he felt really good. He had a great day. He kept us in the game. We scored some runs and we held the lead."
The Nationals begin a three-game series against the Chicago Cubs at 2:20 p.m. Friday at Wrigley Field in Chicago. The Braves host the Milwaukee Brewers in a three-game series starting at 7:35 p.m. Friday at SunTrust Park in Atlanta.