The Upton brothers have a place in baseball history.

Justin and B.J. Upton both homered in Atlanta's 7-6 victory over visiting Washington on Friday night. It's the fifth time the Uptons homered in the same game, setting the major-league record for brothers.  

Justin Upton hit a two-run home run in the first inning off Nationals starter Stephen Strasburg at Turner Field. An inning later, his older brother B.J. followed with a two-run shot, also off Strasburg.

"I taught him everything he knows," B.J. Upton joked.

It marked the second time they had homered in the same game this season. Friday's homers broke the mark they previously shared with Jeremy and Jason Giambi and Vladimir and Wilton Guerrero.

Justin Upton sent a 94-mph fastball to dead center field, a distance of more than 400 feet for his 20th homer of the season, while B.J. connected on an 81-mph curveball, taking it left for his eighth homer.

The last time the Uptons homered in the same game was June 24 against the Astros. With both arriving in Atlanta prior to the 2013 season, they needed just 286 games together to set the record.

The Uptons helped fuel an offense that brought an end to an eight-game losing streak. Atlanta jumped on Strasburg for four home runs, including three two-run shots.

"After a rough road trip and an off day, it's nice to come back and win a ballgame that we needed," Justin 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."