Nestor Cortes of the Yankees reacts after giving up a fifth-inning...

Nestor Cortes of the Yankees reacts after giving up a fifth-inning two-run base hit against Kevin Pillar of the Angels at Yankee Stadium on Thursday. Credit: Jim McIsaac

Ugly.

Ugly weather. Ugly field conditions. Ugly baseball.

On a wet and windy Thursday night at the Stadium, the Yankees were run over by the Angels, 9-4, in front of a soaked crowd of 40,681.

The Yankees (68-48), who came in having won eight of their last 10, lost two of three to the Angels (51-64), who outhit them on this night, 14-8.

“Tough conditions, both teams,” Aaron Boone said. “Just not a great night for us.”

The Yankees, who got garbage-time RBI singles in the eighth from Juan Soto and Giancarlo Stanton and a home run from Oswaldo Cabrera in the ninth to pull within 9-4, did stay tied atop the AL East with the still slumping Orioles, who lost in Toronto.

Shortstop Anthony Volpe left in the eighth inning with a left foot contusion, the result of fouling a ball off it in the second inning.

Boone said X-rays came back negative but couldn’t decisively say Volpe would be back in the lineup Friday when the Yankees start a three-game series against the Rangers (although there already was talk about a possible doubleheader Saturday given Friday’s grim forecast).

“I don’t know, we’ll see,” Boone said of Volpe playing Friday. “I think he’s going to be fine.”

Nestor Cortes (5-10, 4.42 ERA), who got the start when the Yankees chose to push the struggling Marcus Stroman back until Sunday, turned in another subpar outing, tagged for six runs and nine hits over 4 2⁄3 innings.

The lefthander’s final line was made worse by righthanded reliever Enyel de los Santos, one of three trade deadline acquisitions, who allowed two inherited runners to score in the Angels’ six-run fifth that made it 8-1.

Cortes, who has allowed a combined 24 runs in his last five outings, didn’t throw the ball that poorly Thursday, though he struggled putting away hitters on the water-logged night.

“They’re one of the teams that strikes out the least in the big leagues. To their credit, they fouled off a lot of good pitches,” Cortes said. “They battled me the whole night.

“Conditions were tough and they came out with the win . . . it’s tough when the rain is on you and you’re trying to grip the ball . . . it’s tough but it’s no excuse. We both battled through that. Both teams had that adversity.”

Angels lefthander Tyler Anderson (9-10, 2.99) was not impacted as much. Though giving up his share of hard contact that was hit right at his defense, Anderson mostly cruised, allowing one run, three hits and a walk over six innings in which he struck out seven.

“I feel like we hit the ball hard, we just hit it right at guys,” said Jazz Chisholm Jr., who hit his first Yankee Stadium home run since being acquired, a solo shot in the second that tied it at 1-1. “Felt like we played pretty well. He [Anderson] just got lucky today.”

The Yankees fell behind just four pitches into the game when leadoff hitter Nolan Schanuel blasted Cortes’ 2-and-1, 91-mph fastball into the seats in right.

After Chisholm’s blast — his fifth as a Yankee and 18th this season — the Angels retook the lead in the third.

As the mist present at the start of the game turned into full-out rain, Michael Stefanic doubled to left. Schanuel followed with an RBI single to make it 2-1.

The Angels batted around in the fifth, the key hit Kevin Pillar’s two-out, two-run flared single to center on an 0-and-2 sinker that made it 4-1.

Boone brought in de los Santos to face Anthony Rendon, who walked to reload the bases. Jo Adell then hit a sinking liner to right on a 2-and-2, 96-mph fastball that Juan Soto made a diving attempt for but just missed. The ball skittered away from the outfielder, clearing the bases to give the Angels a 7-1 lead.

“The way I got to 0-2 was pretty good,” Cortes said of the Pillar at-bat, which ended with the veteran hitting a sinker that was well outside of the zone. “Set him up to throw a non-competitive pitch there, which I did, and I guess he was just hanging out over the plate and threw his bat at it. It was perfectly placed.

“I thought I made a good pitch and the results didn’t go my way.”

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME