AP photo by Brynn Anderson / Atlanta's Adam Duvall hits a home run in the fifth inning of Wednesday night's 29-9 home win against the Miami Marlins. Duvall hit three homers in the game, including a grand slam, and drove in nine runs for the Braves as they bounced back from a 8-0 loss to Miami on Tuesday.

ATLANTA — Atlanta Braves manager Brian Snitker was just hoping to shake up the lineup the night after a shutout loss. As it turned out, the new mix made National League history.

Adam Duvall drove in nine runs with three homers, including a grand slam, as the Braves obliterated their franchise scoring record and set the NL record in a 29-9 romp over the Miami Marlins on Wednesday night.

The Braves broke loose for 11 runs in the second inning and nearly matched the modern (since 1900) scoring mark for runs by a single team in a Major League Baseball game, set by the Texas Rangers in a 30-3 rout of the Baltimore Orioles in 2007.

"Pretty amazing," said Atlanta first baseman Freddie Freeman, who drove in six runs with three hits, including a two-run homer. "Hard to put into words, really, when you look up and see 29 runs on the board."

The Braves had 23 hits, including seven homers, to score the most runs in their history spanning stints in Boston, Milwaukee and Atlanta. They topped their old scoring record by six runs.

Duvall's enormous night came exactly a week after he hit three home runs in a road game against the Boston Red Sox. He is the franchise's first player with more than one three-homer game, and his nine RBIs tied pitcher Tony Cloninger's franchise record set on July 3, 1966.

"I've never seen an offense click like that, all together," Freeman said.

A day after being shut out by the Marlins on four hits, the Braves erupted. Freeman said he woke up to a text from Snitker saying he'd be hitting second. Travis d'Arnaud had a three-run homer in the second inning as the new cleanup hitter.

Freeman now expects to be hitting second again.

"I would assume so," said Freeman, who had two grand slams in three days this past weekend. "I think it would be very hard for him to change the lineup after scoring 29 runs."

some text
AP photo by Brynn Anderson / Atlanta's Marcell Ozuna greets Dansby Swanson, left, Ender Inciarte, center, and Austin Riley as they return to the dugout after scoring on a double by Ronald Acuna Jr. during the sixth inning of Wednesday night's home game against the Miami Marlins. The Braves won 29-9.

The big second inning knocked Pablo López out of the game. Duvall hit another homer, his 12th of the year, in a six-run fifth and added the slam in the seventh off Josh Smith.

"I've known that homers come in bunches, but something like that is pretty special," Duvall said. "I'm going to enjoy this one tonight."

Three runs scored on a sixth-inning double by Ronald Acuña Jr. that gave Atlanta a 25-8 lead and the franchise record for runs in a game.

On Sept. 2, 1957, Hank Aaron and the Milwaukee Braves, the eventual World Series champions, hammered the Chicago Cubs 23-10 at Wrigley Field. That franchise record for runs in a game stood for 63 years. The old Atlanta record was 20 runs, most recently against the Marlins on Oct. 5, 2001.

Atlanta second baseman Ozzie Albies, playing in his first game since Aug. 4 in his return from a wrist injury, had three hits, including a homer. Acuña also hit a three-run homer and drove in five runs.

Five RBIs?

"He was third on the team," Freeman said with a laugh.

Freeman's homer in the third was the 1,500th hit of his MLB career. Dansby Swanson, who had three hits, Austin Riley and Duvall each scored five runs.

Atlanta's offensive outburst came one day after being shut out 8-0 by Miami for the Braves' second straight loss in the series.

López (3-4) allowed seven runs in only 1 2/3 innings. He had four walks.

"He just seemed to be out of sync early in that game with the walks and wasn't getting anything really over," Marlins manager Don Mattingly said.

Despite the loss, the Marlins took two of three for their first series win in Atlanta since Sept. 12-14, 2016.

Despite the overwhelming run support, Atlanta left-hander Tommy Milone didn't get the win. He allowed eight hits and eight runs in 3 1/3 innings.

Grant Dayton (2-0) got the victory.

Lewis Brinson hit a three-run homer for Miami. Jazz Chisholm, who was hitting .063 through six games, had a run-scoring triple and his first homer as an MLB player.

The Marlins' playoff hopes will be on the line when they play 15 games in 11 days in a grueling homestand that opens with seven consecutive games against Philadelphia. The homestand, which begins Thursday night, includes four doubleheaders.

The Marlins are only 2-9 at home this season but are 17-9 on the road. Mattingly can't explain the home struggles.

"I wish I knew that," Mattingly said. "I don't know what it is. We just have to get past the home thing. Anything I talk about with it, I'm just guessing."

Atlanta opens a four-game series with another NL East Division foe with Thursday night's visit to the Washington Nationals, the reigning World Series champions.