LONDON — Perhaps it was the high-powered wattage of Prince Harry and wife Meghan Markle rubbing off on the Yankees and Red Sox, who met the Royal Couple before the first big league game played in Europe.

Or it could have been London Stadium’s cozy dimensions, lightning fast turf, jet-lagged pitchers and lineups that feature big muscles.

Whatever the reason, the Yankees and Red Sox abused pitchers on the way to a 17-13 Yankees victory in front of a spirited and sold-out crowd of 59,659 Saturday night.

“They are a great offensive team and we weren’t aggressive in the strike zone trying to get them out,’’ Red Sox manager Alex Cora said of the Yankees, who were without Giancarlo Stanton and lost first baseman Luke Voit to a lower abdominal injury in the fifth. Red Sox shortstop Xander Bogaerts also left the game after the seventh inning due to leg cramps.

“It was one of those games it felt like there was momentum all the time,” Cora added. “It was one of those games people love. People like offense.’’

And there was plenty of it. The Yankees posted season highs in runs (17) and hits (19) and the pitchers did the same in giving up runs (13) and hits (18).

The Yankees’ 12th win in 13 games raised the best record in the AL East to 53-28 and extended their lead over the third-place Red Sox to 10 lengths.

After a 58-minute first inning in which each team scored six runs against starters Rick Porcello and Masahiro Tanaka, the Yankees scored the next 11 runs and were cruising. Then they were sweating when Boston’s Jackie Bradley Jr. hit a homer off Nestor Cortes Jr. that ignited a six-run seventh inning and put the Red Sox back in the game. Adam Ottavino and Zack Britton combined to throw two scoreless innings and Aroldis Chapman recorded the final three outs in a non-save situation.

DJ LeMahieu, who started the night leading the AL in hitting with a .336 average, went 4-for-6 and drove in five runs in his first game after being named the AL’s starting second baseman for the All-Star Game.

“For me it is having a good routine,” he said. “We have such a good lineup I don’t have to be the guy. I am in a good place, hopefully keep it going.”

Tanaka, after his abysmal outing, didn’t blame the mound, which had never been pitched on before. Nor did he blame anything else.

“I have no excuse as far as my pitching,” said Tanaka, who gave up six runs and four hits in two-thirds of an inning. “You just kind of have to tip your cap to the other team. I just wasn’t efficient. I wasn’t able to do my job out there.”

Aaron Judge contributed a two-run home run to right in a six-run fourth that appeared to seal the victory — but didn’t.

“We just stuck to our plan against him. We didn’t miss our pitches that we got over the plate,’’ Judge said of Porcello, who gave up six runs and five hits (including Aaron Hicks’ two-run homer, the first ever hit in Europe) in the first.

The outfielders battled a blinding sun in the early innings and infielders flinched trying to catch throws from the outfield that got lost in the white seats beyond the outfield walls.

“Picking up the ball in the outfield was a little tough just with the white backdrop and the sun basically just sat right above that little archway,’’ Judge said.

The Yankees gifted Prince Harry a team shirt and according to Didi Gregorius, he has to keep a promise.

“He said if we win, he’s going to let the baby wear the [Yankees] shirt,’’ Gregorius said. “I hope he remembers that. The gift that we gave him.’’

And maybe print on the back the box score to a game nobody will forget anytime soon.