AP photo by Charles Krupa / Boston's Alex Verdugo beats the tag by Atlanta Braves catcher William Contreras to score on a single by Xander Bogaerts during the sixth inning of Wednesday night's game. The host Red Sox won 9-5.

BOSTON — Rafael Devers homered and drove in three runs as the Boston Red Sox stopped the Atlanta Braves' four-game winning streak with a 9-5 victory Wednesday night.

Hunter Renfroe also connected for Boston, Christian Vázquez had three RBIs and Xander Bogaerts walked twice and scored three times as Red Sox split the short interleague series after losing 3-1 Tuesday night.

Bogaerts said Devers is locked in.

"He can put a team on his back for weeks and months," he said. "He's not the type of guy who can just do it for a couple of days. He can ride it for a long time. It's just a credit to the talent and the work that he puts in."

Red Sox right-hander Nick Pivetta (6-0) struck out a season-high nine batters in six innings, settling down after a shaky start. He was charged with four runs and seven hits.

Boston had dropped two in a row on the heels of a four-game winning streak.

Austin Riley homered for Atlanta for the fifth time in his last five games. William Contreras had two hits and two RBIs, including a solo shot in the ninth.

Braves left-hander Drew Smyly (2-3) allowed seven runs and five hits in 5 1/3 innings. He was 2-0 with a 2.00 ERA over his previous three starts.

"I was very efficient with my pitch count, wasn't walking anybody," Smyly said. "It's pretty hard to give up five hits and one walk and seven earned runs, but I accomplished that tonight. So, no, I'm not happy with the results."

The game was delayed for nearly three hours by rain after the sixth inning.

"We knew what was going on, but it was out of the umpires' hands and the teams, it's the league," Boston manager Alex Cora said. "They tell us we have to play, we play. It was tough at the end."

Atlanta jumped out to a fast start with three runs over the first two innings. Ozzie Albies hit an RBI triple and scored on Dansby Swanson's double in the first. Contreras added a sacrifice fly in the second.

Boston trailed 4-3 before scoring four times in the sixth. Devers hit a tiebreaking RBI double and Vázquez added a two-run single with two outs, snapping an 0-for-10 skid.

Vázquez also drove in Renfroe with a sacrifice fly in the eighth, giving the Red Sox a 9-4 lead.

"We got back to our principles of an offense, and you saw what happened," Cora said. "If we do that on a nightly basis, we can be very dangerous."

Devers connected for his 14th homer of the season in the fourth, tying it at 3 with a two-run shot to center, but Riley responded with his 10th of the season in the fifth.

The Braves (24-25), unable to get above .500 for the first time this season, are off Thursday before returning to National League East Division play Friday with the opener of a three-game road series against the New York Mets.

Atlanta added another name to the injured list Wednesday. Left fielder Marcell Ozuna is expected to be sidelined for about six weeks while recovering from fractures to the middle and ring fingers of his left hand Tuesday. He was injured when he slid into third base in Atlanta's two-run third inning.

Ozuna traveled to Atlanta on Wednesday and was evaluated by hand specialist Dr. Gary Lourie. Braves manager Brian Snitker said Ozuna is expected to be in a cast but will not need surgery.