After an RBI single by Miguel Rojas and fielder's-choice groundout by Bryan De La Cruz tied the score, Sanchez hit the first pitch he saw from Kyle Finnegan (5-7) to left-center for his 12th homer of the season.
“The first thing that came to mind was (hitting coach Eric) Duncan letting me know that this pitcher throws at least 90% fastballs,” Sanchez said through an interpreter.
“That's been the pitch I've been successful with so I decided I'm going to sit on this one. Normally I've been having good contact with fastballs. I knew I was going to be successful and the home run came along.”
Sanchez also hit a two-run homer in the sixth for Miami's first runs. The 23-year-old rookie has five home runs and 10 RBI in his past six games.
De La Cruz homered in the eighth for the Marlins, who took two of three from Washington.
“It wasn't a great day until the last inning, and obviously we turned it into a pretty good day and those are the types of games you've got to win," Marlins manager Don Mattingly said.
Miami improved to 2-66 when trailing after eight innings.
Washington had broken a 3-3 tie with two runs in the seventh.
In a matchup of rookie left-handers with the same last name, the Nationals’ Josh Rogers left with a 2-0 lead after surrendering one hit and one walk over five innings. He struck out six while throwing 73 pitches.
Marlins starter Trevor Rogers allowed multiple baserunners in each of his four innings. He gave up one run on seven hits, walked one and struck out three on 84 pitches.
Nationals manager Dave Martinez opted to try and get four innings from his bullpen and a four-out save from closer Finnegan.
“In the last inning he walked the leadoff hitter, (then) a dribbler base hit and after that they were staying on his fastball, they hit his fastball really hard," Martinez said. “Just one of those days for Finnegan. He's been unbelievable all year long. He'll be back out there Friday.”
Escobar was in the middle of an impressive 3-6-3 double play in the seventh. He slid into second base to field a low throw from Bell and made the return throw from the ground to get Lewin Diaz at first.
It was the first matchup between rookie starters with the same last name since brothers Greg and Mike Maddux squared off on Sept. 29, 1986.
Marlins: C/OF Jorge Alfaro, who hadn't played since leaving Saturday’s game with left calf tightness, had a pinch-hit single in the eighth inning and left for a pinch runner.
Nationals: Martinez, who underwent left ankle surgery on Sept. 2 and had a follow-up procedure Tuesday, was back on the bench. INF Luis Garcia got the day off.
Marlins: RHP Elieser Hernandez (1-1, 4.14 ERA) starts the opener of a three-game series against the visiting Pirates on Friday.
Nationals: RHP Josiah Gray (0-2, 6.00) opens a three-game series against Colorado on Friday. Gray, then with the Dodgers, made his first major league start against the Rockies on July 25, allowing two runs in four innings.
MLB playoffs 2021: Best moments from ALCS Game 1 between Boston Red Sox and Houston Astros
The Boston Red Sox and Houston Astros meet again in the ALCS with a trip to the World Series on the line.
Stephen A.: Dodgers-Braves should have been a divisional series
Stephen A. Smith implores MLB to change its playoff format after the Giants drew the Dodgers in the first round despite both teams eclipsing 100 wins.
Milwaukee Brewers seeking answers for Christian Yelich's hitting struggles
Brewers president of baseball operations David Stearns says nobody has been able to figure out the cause of Christian Yelich's hitting struggles over the past couple of seasons.
Atlanta Braves to start Max Fried in Game 1 of National League Championship Series
Max Fried, who pitched six shutout innings with nine strikeouts in Atlanta's Game 2 win over Milwaukee in the NLDS, will start against the Dodgers in Game 1 of the NLCS on Saturday.
Thursday night's NFL and MLB endings cost bettors big money
The final results of Thursday's primetime NFL and MLB games were equal parts dramatic and costly for bettors with wagers on those particular events.
Houston Astros ace Lance McCullers Jr. left off ALCS roster against Boston Red Sox
Right-hander Jake Odorizzi had been added to the Astros' roster for the ALCS, replacing ace Lance McCullers Jr., who suffered forearm tightness in his last start and is still being evaluated.