BOSTON — J.J. Hardy hit a pair of two-run homers and drove in five runs and Mark Trumbo finished a triple shy of the cycle as the Baltimore Orioles claimed their seventh straight win to start the season with a 9-5 rout of the Boston Red Sox on Tuesday night at Fenway Park.

Hardy’s blasts came in the fourth and seventh innings, marking his 12th career multi-homer game, and Trumbo followed Monday’s three-run bomb with a two-run shot in the sixth.

Matt Wieters also drove in two runs for Baltimore, which is enjoying its best start since opening 9-0 as the St. Louis Browns in 1944.

Mike Wright (1-0) posted the win in his season debut for the Orioles, allowing four runs, five hits and a walk while striking out four in five innings.

David Ortiz had a two-run homer and an RBI double and Mookie Betts added an RBI two-bagger and scored a run for Boston (3-4), which dropped its third straight.

Clay Buchholz (0-1) was booed off the mound after five-plus innings, allowing five runs, five hits and three walks and striking out five for the Red Sox.

Ortiz put the Red Sox ahead 2-0 with his first Fenway homer of the season in the first inning, crushing a 1-2 Wright fastball into the Orioles’ bullpen in right after Dustin Pedroia reached on a single.

Hardy, who made a spectacular diving catch on a Blake Swihart liner in the second, tied it at 2 with a two-run blast to right two innings later.

A crew chief review confirmed Hardy’s slice around Pesky’s Pole was indeed a home run.

Betts nearly had a two-run shot in the fifth, but the ball didn’t clear the Green Monster in left and resulted in an RBI double as Jackie Bradley Jr. scored from first.

Betts later scored from third on a wild pitch from Wright, giving the Red Sox a 4-2 lead.

Trumbo’s homer tied it at 4 and Hardy’s sacrifice fly three at-bats later put Baltimore on top for good.

The Orioles added four runs in the seventh on Trumbo’s two-run single and Hardy’s final homer.

Ortiz’s double in the eighth brought the Red Sox within four.

NOTES: Boston manager John Farrell said benched 3B Pablo Sandoval, who was booed by hometown fans during introductions on Opening Day, will “play I think a key role and contribute at some point this season.” Sandoval is 0-for-6 this season. … In honor of David Ortiz’s 500th career home run, which he hit Sept. 12 at Tampa Bay, the Red Sox gave fans at Tuesday’s game commemorative necklaces. Ortiz has announced his plans to retire after this season.