BOSTON — Renato Núñez hit a three-run homer, Asher Wojciechowski pitched six shutout innings and the Baltimore Orioles beat the Boston Red Sox 4-1 on Friday night.

Wojciechowski (4-8) struck out six as the Orioles took the opener of the season-ending, three-game series for both clubs.

Baltimore also guaranteed that the Red Sox will finish with a losing record at Fenway Park, adding to the sting of missing the playoffs one year after winning the World Series. The Red Sox fell to 37-40 at Fenway, where they last finished with a losing record in 2014 — when they were also coming off a World Series championship.

Boston will finish with a winning record overall but losing record at home for just the second time in franchise history.

Núñez’s three-run shot to left in the third off of Nathan Eovaldi (2-1) was just about all the scoring the Orioles needed. It was the 30th homer of the season for Núñez, who added an RBI single in the ninth and drove in all four of Baltimore’s runs.

Xander Bogaerts broke up the shutout with a single up the middle, scoring Rafael Devers, who led off the ninth with a double off Richard Bleier. Although Bleier couldn’t preserve the shutout, he picked off Bogaerts for the first out and Boston didn’t get another runner on base.

The Red Sox were just 1 for 13 with runners in scoring position.

Wojciechowski allowed four hits and walked one. He pitched out of a jam in the third after Mookie Betts led off with a single. The Orioles saved a run with another strong defensive play in the fourth.

Jackie Bradley Jr. hit a drive that bounced off the top of the short wall in right after Sam Travis was hit by a pitch. The ball bounced back into play and DJ Stewart got it to first baseman Trey Mancini on one hop, then Mancini fired it home to catcher Chance Sisco in plenty of time to get Travis, who attempted to make it all the way around from first.

Eovaldi allowed three runs on three hits and four walks over five innings. He struck out three.

NOTES: LF Andrew Benintendi was out of the lineup after leaving Thursday’s game at Texas in the fourth inning when he fouled a pitch off his right calf. . RF Mookie Betts returned as Boston’s designated hitter after missing two games with a jammed toe. Gorkys Hernández started in right field for Betts.

Comments are not available on this story.