AP photo by Hakim Wright Sr. / Atlanta Braves first baseman Freddie Freeman swings during the first inning of Sunday's home game against the Miami Marlins. Freeman, who turned 32 on Sunday, hit a home run in the seventh inning to help lead the Braves to a 5-3 victory.

ATLANTA — Ozzie Albies and Freddie Freeman each hit a solo home run off Anthony Bass in the seventh inning, and Eddie Rosario went deep off Edward Cabrera in the fourth as the Atlanta Braves beat the Miami Marlins 5-3 on Sunday.

The Braves, who are in first place in the National League East as they seek their fourth consecutive division title, padded their lead to 4 1/2 games over the second-place Philadelphia Phillies.

Miami, far back in the East and playing the role of spoiler, had won two consecutive series against the Phillies and the third-place New York Mets before coming up short against Atlanta.

Rosario's homer, his 10th this season, put the Braves ahead 2-1 and was followed by Cabrera exiting the game with soreness in the big toe on his right foot. Albies connected for the 28th time in 2021, sending a fastball into the right-field seats to make it 4-3. Freeman, on his 32nd birthday, followed two batters later with his 30th homer of the season, an opposite-field shot to left.

"He hit his birthday blast," Albies said. "Right away when he got to the dugout everybody was singing 'Happy birthday to you.' Homers are fun. I think that's why everybody celebrates them."

The Braves, who rank second in the NL in homers, tacked on a run to take a 3-1 lead in the fifth when Jorge Soler doubled to left and scored on Travis d'Arnaud's single to left.

"I don't know that anything is going to top last year, quite honestly," Braves manager Brian Snitker said when asked to compare this year's lineup to the past two. "That's about as good as I've ever been around. I think they're all just into the fact that we could do something here."

Jacob Webb (4-2) faced the minimum in the seventh to earn the win. Bass (3-8) gave up two runs and two hits.

In the ninth, Atlanta closer Will Smith allowed a leadoff triple to Jesús Sánchez and issued a one-out walk to Isan Diaz before retiring Alex Jackson on a popup and Eddy Alvarez on a groundout to earn his 32nd save in 37 chances.

Braves starter Max Fried ran into trouble in the sixth. Lewin Diaz led off with his first career triple and scored on Miguel Rojas' single. Fried was charged with a fielding error on Jazz Chisholm Jr.'s sacrifice bunt and gave up Sánchez's RBI single to make it 3-all.

"I feel like we bounced right back into that game," Miami manager Don Mattingly said. "We get it to 3-3, Richard gives us a good inning that gives us another chance to score, and obviously Albies and Freddie get us."

Fried allowed three runs and four hits with one walk and seven strikeouts in six innings. He had gone 1-3 with a 6.10 ERA in his first 10 career starts against Miami.

Cabrera, who made the fourth start of his MLB career, allowed two runs and three hits with three walks and four strikeouts in 3 2/3 innings.

Sánchez gave the Marlins a 1-0 lead in the second with his third homer of the series and 10th overall, a 460-foot shot to center with an exit velocity of 112 mph.

"This kid is as strong as an ox," Mattingly said. "When he hits them, they go. He's one of those guys, in our ballpark, it doesn't really matter. His power is big. The ball he hit the other night was more of a line drive for him, and it ends up going in the seats out there. This kid has big-time power."

Cabrera escaped a jam in the second with two runners on by striking out Rosario. He stranded runners at first and third in the third with a strikeout of Austin Riley.

The Braves improved to 23-15-8 in series play this season, having won five of their past six home series. Atlanta has taken five of the past six games against Miami, and after losing five of the first six to the Marlins this season, the Braves are 10-3 against them since. They also improved to 11-4 overall in rubber games this year.

Atlanta is off Monday before opening a three-game home series against the Colorado Rockies on Tuesday.