MIAMI — Their sluggish start now far behind them, Ronald Acuna Jr. and the Atlanta Braves needed just one more win to complete a stunning turnaround.

They earned it Tuesday night, beating the Miami Marlins 2-1 to take their fifth straight National League East title and finish the first leg of a trek they hope leads them to a second straight World Series crown.

Afterward, they popped bubbly and puffed cigars, basking in their accomplishment.

“It’s hard to win one,” Braves manager Brian Snitker said. “To win five is pretty special. It’s a credit to our organization.”

William Contreras drove in the go-ahead run with an infield single in the fifth inning, and the Atlanta pitching staff turned in a solid performance.

With the victory, Atlanta also earned a first-round bye as the No. 2 seed in the NL, behind the Los Angeles Dodgers.

The Braves were 10½ games behind the New York Mets at the start of June and lost four of five to New York in early August. But they were in familiar territory. Atlanta was 30-35 at one point last season before winning the World Series.

“To keep plugging along and the consistency that these guys showed throughout the whole year,” Snitker said. “Coming to work every day and worrying about today. They didn’t get caught up that we were behind.”

Acuna, whose 2021 season ended when he tore an ACL in this same ballpark, hit a two-out single in the second, scoring Orlando Arcia and giving the Braves a 1-0 lead.

“I am feeling so much happiness and joy,” Acuna said. He couldn’t get through his postgame interview without teammates dousing him. “Last year, I couldn’t experience this because of my injury. I am so happy to be a part of this club.”

The Braves swept the Mets over the weekend to take the division lead and entered the Marlins series needing a win or a Mets loss to clinch the division crown.

The Mets swept the Washington Nationals in Tuesday’s doubleheader but had to settle for a wild-card spot.

Kenley Jansen recorded his 41st save for the Braves, working a perfect ninth to seal the win.

Starter Jake Odorizzi (6-6), who joined Atlanta at the trade deadline, allowed one run in five innings. He struck out six and gave up only two hits, including a home run by Jesus Sanchez in the fourth.

“It’s great to be a part of this,” Odorizzi said. “Every one of these is special. I was only here for two months of it, but it doesn’t make it less special. It’s pretty fantastic.”

Reliever A.J. Minter escaped Miami’s threat in the eighth. Jon Berti hit a one-out double and stole his 41st base of the season. Bryan De La Cruz and Avisail Garcia walked to load the bases. But Nick Fortes, pinch hitting for Sanchez, popped out to end the inning.

“We tried to throw our best guys out there today and extend this thing,” Marlins manager Don Mattingly said. “We got out of some jams and stayed in the game. We just weren’t able to get that last hit.”

The Braves did not take advantage of many chances at the plate to stretch their lead, but their pitchers held the Marlins to four hits.

Collin McHugh and Raisel Iglesias pitched scoreless innings in the sixth and seventh in relief of Odorizzi.

In the fourth, Sanchez hit Odorizzi’s first pitch over the right-field wall to tie the game.

Miami starter Braxton Garrett (3-7) was pulled in the fifth after Contreras hit a two-out infield single, which scored Travis d’Arnaud and allowed Atlanta to retake the lead.

Contreras had two hits and an RBI.

Garrett allowed six hits and two runs, and he walked five and struck out seven.

The Braves, one year after winning their first World Series title since 1995, are playoff-bound without All-Star first baseman Freddie Freeman, who signed with the Dodgers in March as a free agent.

Atlanta also has 100 wins for the first time since 2003 (101-61). The Braves finished 88-73 in the regular season last year.