Taty Castellanos celebrates his penalty kick. (Vincent Carchietta-USA TODAY Sports)

It wasn’t near as scintillating as its 6-0 romp over D.C. United Saturday, as one goal was enough for New York City FC in a 1-0 win over Chicago Fire FC Wednesday night.

Taty Castellanos converted a penalty kick in the 51st minute as NYCFC solidified its quest for an MLS Cup Playoff spot at Yankee Stadium. It was his fourth PK of the season.

The win boosted the Cityzens (13-11-8, 47 points) into fourth place in the Eastern Conference with two games remaining in the regular season.

Castellanos scored his team-best 16th goal of the season and goalkeeper Sean Johnson recorded his second consecutive clean sheet.

Chicago (34 points) dropped to 9-17-7.

“It was a very different game than the last, very even and close,” NYCFC head coach Ronnyy Deila said. “Sometimes you just have to dig out a win and we did that today. In the first half, we were half a yard too late in the press and did not move the ball as well either. It was also almost zero to zero in goal chances, but I think we lifted the level in the second half. We had more intensity in the pressure and won the ball in better situations.

“We got the goal and kept a clean sheet. We have also been really good defensively and to win on a day like this is very very good.”

NYCFC is 2-0-1 in its last three games after enduring its recent skid.

“Yes, we did come from a very negative losing streak, that all of the teams in the world, I believe, go through,” midfielder Santiago Rodriguez said. “The best teams in Europe go through that phase as well, and we have responded very well to that negative losing streak we have had in these last matches by winning.

“The reality is that the team showed a great level of maturity and that is very important, that we got good results even though we did not have the best results starting off.”

The visitors had a late chance to equalize the score a minute into stoppage time. Defender Jhon Espinoza curled in a cross that midfielder Luka Stojanović headed on frame but had his attempt saved by Johnson.