Jon Berti had three hits, including a two-run double, Pablo López allowed only two hits in five scoreless innings and the Miami Marlins beat the Atlanta Braves 4-2 on Thursday night to boost their playoff hopes.

Miami snapped a four-game losing streak. The Marlins (29-28) are competing for a wild-card spot as they try to reach the playoffs for the first time since winning the World Series in 2003.

More Images
Miami Marlins' Chad Wallach celebrates with Starling Marte (6) after scoring on a Jon Berti double during the sixth inning of a baseball game against the Atlanta Braves on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Jon Berti had three hits, including a two-run double, Pablo López allowed only two hits in five scoreless innings and the Miami Marlins beat the Atlanta Braves 4-2 on Thursday night to boost their playoff hopes.

Miami Marlins starting pitcher Pablo Lopez (49) delivers in the first Inning of a baseball game against the Atlanta Braves Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Dansby Swanson's bases-loaded single off Brandon Kintzler in the eighth drove in two runs. Kintzler worked around a one-out walk to Freddie Freeman in the ninth to earn his sixth save.

Miami Marlins starting pitcher Pablo Lopez works against the Atlanta Braves during the first inning of a baseball game Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Braves rookie right-hander Ian Anderson (3-2) threw five scoreless innings before giving up three unearned runs in the sixth. Brian Anderson opened the inning with a broken-bat liner. Third baseman Adeiny Hechavarria dropped the liner for an error as the barrel of the bat landed a few feet away.

Atlanta Braves starting pitcher Ian Anderson works against the Miami Marlins during the first Inning of a baseball game Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

After already clinching its third straight division title, Atlanta's focus is on preparing its rotation for the postseason after Max Fried tweaked his left ankle on Wednesday night. Tests on Fried's ankle were negative on Thursday, raising hopes he'll be ready to start Game 1 of the wild-card series.

A tarp covers the infield at Truist Park during a rain shower before the scheduled start of a baseball game between the Atlanta Braves and the Miami Marlins on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

The Braves lost No. 1 starter Mike Soroka last month to a season-ending torn right Achilles tendon. Former All-Star Mike Foltynewicz and Sean Newcomb were demoted due to poor performance.

Members of the Atlanta Braves grounds crew work to repair the mound during a rain shower in the fourth inning of a baseball game between the Atlanta Braves and the Miami Marlins on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Marlins: RHP Josh Smith was placed on the 10-day IL with fractured nail, ending his season. RHP Nick Neidert was optioned to the team’s alternate training site. OF Magneuris Sierra was reinstated from the 10-day IL and LHP Dan Castano was recalled.

The Braves ended their four-game winning streak and were denied a chance to clinch the NL's No. 2 seed in the playoffs.

Miami Marlins' Chad Wallach celebrates with Starling Marte (6) after scoring on a Jon Berti double during the sixth inning of a baseball game against the Atlanta Braves on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Miami Marlins' Chad Wallach celebrates with Starling Marte (6) after scoring on a Jon Berti double during the sixth inning of a baseball game against the Atlanta Braves on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Dansby Swanson's bases-loaded single off Brandon Kintzler in the eighth drove in two runs. Kintzler worked around a one-out walk to Freddie Freeman in the ninth to earn his sixth save.

The Braves scored a combined 25 runs in winning the first three games of the series. Atlanta committed a season-high four errors.

López (6-4) had six strikeouts and two walks.

Miami Marlins starting pitcher Pablo Lopez (49) delivers in the first Inning of a baseball game against the Atlanta Braves Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Miami Marlins starting pitcher Pablo Lopez (49) delivers in the first Inning of a baseball game against the Atlanta Braves Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Braves rookie right-hander Ian Anderson (3-2) threw five scoreless innings before giving up three unearned runs in the sixth. Brian Anderson opened the inning with a broken-bat liner. Third baseman Adeiny Hechavarria dropped the liner for an error as the barrel of the bat landed a few feet away.

A single by Garrett Cooper left runners at first and third. Anderson struck out Matt Joyce and Miguel Rojas before Chad Wallach's single to right field drove in Anderson. Berti's two-run double to left field knocked Anderson out of the game.

Jesus Aguilar homered off A.J. Minter in the seventh.

Miami Marlins starting pitcher Pablo Lopez works against the Atlanta Braves during the first inning of a baseball game Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Miami Marlins starting pitcher Pablo Lopez works against the Atlanta Braves during the first inning of a baseball game Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

After already clinching its third straight division title, Atlanta's focus is on preparing its rotation for the postseason after Max Fried tweaked his left ankle on Wednesday night. Tests on Fried's ankle were negative on Thursday, raising hopes he'll be ready to start Game 1 of the wild-card series.

The Braves will play the full wild-card series at Truist Park, beginning on Wednesday. Manager Brian Snitker said "I think everybody feels it’s a realistic possibility” that Fried will have sufficient time to recover.

Fried’s injury came one day after the Braves learned Cole Hamels is done for the season. He made only one start after battling shoulder issues all year.

Atlanta Braves starting pitcher Ian Anderson works against the Miami Marlins during the first Inning of a baseball game Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Atlanta Braves starting pitcher Ian Anderson works against the Miami Marlins during the first Inning of a baseball game Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

The Braves lost No. 1 starter Mike Soroka last month to a season-ending torn right Achilles tendon. Former All-Star Mike Foltynewicz and Sean Newcomb were demoted due to poor performance.

The start of the game was delayed 1 hour, 39 minutes by rain. The long wait helped to avoid rescheduling the game for Monday — the first day after the scheduled end of the regular season.

TRAINER’S ROOM

A tarp covers the infield at Truist Park during a rain shower before the scheduled start of a baseball game between the Atlanta Braves and the Miami Marlins on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

A tarp covers the infield at Truist Park during a rain shower before the scheduled start of a baseball game between the Atlanta Braves and the Miami Marlins on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Marlins: RHP Josh Smith was placed on the 10-day IL with fractured nail, ending his season. RHP Nick Neidert was optioned to the team’s alternate training site. OF Magneuris Sierra was reinstated from the 10-day IL and LHP Dan Castano was recalled.

Braves: 3B Austin Riley was held out for the second straight day to rest a minor quadriceps injury. Snitker said Riley said he was ready to play Thursday. Hechavarria committed two errors in his second straight start.

2021 ALL-STAR LOGO UNVEILED

Members of the Atlanta Braves grounds crew work to repair the mound during a rain shower in the fourth inning of a baseball game between the Atlanta Braves and the Miami Marlins on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Members of the Atlanta Braves grounds crew work to repair the mound during a rain shower in the fourth inning of a baseball game between the Atlanta Braves and the Miami Marlins on Thursday, Sept. 24, 2020, in Atlanta. (AP PhotoJohn Bazemore)

Major League Baseball commissioner Rob Manfred unveiled the logo for the 2021 All-Star Game, to be played at Truist Field, in a video presentation before the game.

UP NEXT

Marlins: Miami opens a weekend series at the Yankees on Friday night when RHP Sandy Alcantara (3-2, 3.12) makes his first start in New York.

Braves: Atlanta opens a three-game series against the Boston Red Sox on Friday night with RHP Kyle Wright (2-4, 5.74) making his eighth start.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports