ATLANTA (AP) An eight-game losing streak was way too long for Atlanta Braves manager Fredi Gonzalez.
''It was nice to shake hands,'' Gonzalez said. ''It seems it's been an eternity.''
Rain delayed the game by 1 hour, 11 minutes in the middle of the sixth inning.
Atlanta, which nearly blew a 7-0 lead, moved within 3 1/2 games of NL East-leading Washington. The Nationals, who had won two straight and four of six, have lost 21 of 30 against the Braves.
''After a rough road trip and an off day, it's nice to come back and win a ballgame that we needed,'' Upton said. ''They're a good ballclub. We split with them the last time we played. It's good to jump out and get the first one.''
Strasburg (8-10) gave up two more homers than his previous career high. He allowed seven runs, seven hits and two walks with nine strikeouts in five innings, dropping to 1-3 with a 6.99 ERA in seven starts at Turner Field.
Strasburg, who fell to 1-8 with a 5.25 ERA in 12 road starts this year, was coming off a dominating home performance against Philadelphia last Sunday, striking out 10, walking one and holding the Phillies scoreless for seven innings.
''Just not executing pitches - that's the bottom line,'' Strasburg said. ''It feels good out of the hand, I'm just not hitting the spot well enough. I really don't know how to work on it. Some days I'm hitting the spot and some days I'm a couple inches up, so I've got to roll with it, try to miss down instead of miss up.''
Santana, who allowed four runs, four hits and two walks, struck out four in six innings and won his fourth straight decision.
The Braves went up 2-0 in the first on Justin Upton's 20th homer, and they made it 6-0 in the second on B.J. Upton's eighth shot and Freeman's 16th.
Tommy La Stella put Atlanta ahead 7-0 in the fifth with his first career home run.
Washington's Denard Span went 3 for 4 with a run scored and reached base safely for the 34th straight game.
Nationals: RF Jayson Werth was given the night off because of a sore right ankle and right shoulder, but manager Matt Williams said he should be in the lineup for the series' next two games. Werth's replacement, Steven Souza, hit the wall so hard in an attempt to catch Freeman's homer that his glove fell on the warning track. He stayed down on his back for about one minute but remained in the game after a trainer checked on him in right field. Souza lined out in his only at-bat before Frandsen replaced him in the fourth.
''He's OK,'' Williams said. ''He banged the wall pretty good, full speed into the wall. His shoulder's hurting, pretty good impact, so we'll see how he is tomorrow.''
Braves: SS Andrelton Simmons missed his second straight game with a left ankle sprain, and Gonzalez said the earliest he might return is Monday when the Los Angeles Dodgers visit Turner Field.
Nationals: Tanner Roark (11-7) is coming off a 7-3 loss to Baltimore, his worst outing since May 3 against Philadelphia. Maybe a return to Turner Field will help Roark, who made his major league debut there with two scoreless innings of relief on Aug. 7, 2013. In 27 career starts and nine relief appearances, the right-hander is 18-8 with a 2.54 ERA.
Braves: Aaron Harang (9-6) has made 10 career starts against Washington, going 2-4 with a 3.72 ERA. He beat the Nationals 10-2 on April 13. The right-hander is 0-0 with a 2.88 ERA in four starts since the All-Star break.
LEGENDS ON DISPLAY
Former Braves pitchers
The Braves have placed a patch on the front of their jerseys honoring Pete Van Wieren, a beloved broadcaster who died last Saturday. Van Wieren spent 33 years on radio and television, retiring in 2008 not long after the death of Skip Caray, his longtime partner in the booth.
The Uptons became the first set of brothers to homer five times in the same game as teammates, passing Jason and Jeremy Giambi and Vladimir and Wilton Guerrero.