Jack Harrison was red carded in the 26th minute. (Brian Fluharty/USA TODAY Sports)

FOXBOROUGH, Mass. — New York City FC paid the price for playing a man down for most of the game, losing to the New England Revolution at Gillette Stadium Sunday night.

Diego Fagundez tallied in the second half to boost the hosts to a 2-1 win in the penultimate Sunday of the Major League Soccer regular season.

NYCFC played a man down for 64 minutes due to Jack Harrison’s red card.

The defeat tightened up the race for second place and a respite from the mid-week knockout round.

After Sunday’s results, NYCFC remained in second place in the Eastern Conference with a 16-9-8 record and 56 points, one point ahead of the Chicago Fire (16-10-7, 55) two ahead of Atlanta United (15-9-9, 54) and three ahead of Columbus Crew SC (16-12-5, 53).

Regardless where the club finishes, NYCFC has no momentum entering the playoffs. The team has won but once in its last six matches, going 1-2-3, accruing only six points out of a possible 18.

“We’re still in a good position, because when you have destiny in your hand, it’s a good position,” NYCFC head coach Patrick Vieira said. “I’m sure the other teams behind us would want to be in our position. ”

Harrison was given his marching orders in the 26th minute after a rough tackle on Teal Bunbury, forcing the visitors to play short-handed the rest of the match. Harrison also will miss the regular-season finale against Columbus Crew SC at Citi Field next Sunday at 4 p.m.

“The sending-off changed the flow and feel of the game but I thought they played really well,” Vieira said. “I don’t want to take away how well they played today, because New England, with the way they played, showed they are a really good side, and fully deserved to win the game.

Goalkeeper Sean Johnson played yet another outstanding game, making seven saves, including some spectacular ones, to keep New England from extending the lead for most of the match.

Johnson, however, proved to be human, allowing Fagundez to score off a blocked shot two minutes into stoppage time.

The visitors pulled one back off the ensuing kickoff by Alex Ring as second-half substitute Khiry Shelton was credited with the goal past goalkeeper Brad Knighton. It was Shelton’s first goal of the season.

Scoring Summary: 

51’ – NE: Diego Fagundez (Assisted By: Andrew Farrell)

90’+2’ – NE: Diego Fagundez

90’+3’ – NYC: Khiry Shelton (Assisted By: Alexander Ring)

Disciplinary Summary:

26’ – NYC: Jack Harrison (Red Card)

44’ – NYC: Yangel Herrera (Yellow Card)

49’ – NE: Claude Dielna (Yellow Card)

76’ – NYC: Ronald Matarrita (Yellow Card)

78’ – NE: Andrew Farrell (Yellow Card)

Lineups:                                                      

New York City FC: Sean Johnson; Ben Sweat, Alexander Callens, Frederic Brillant, Andraz Struna (70’ Ronald Matarrita); Tommy McNamara (79’ Kwame Awuah), Alexander Ring, Yangel Herrera; Rodney Wallace (60’ Khiry Shelton), David Villa, Jack Harrison Khiry Shelton)

Substitutions Not Used: Eirik Johansen, Ethan White, Andrea Pirlo, Mikey Lopez

New England Revolution: Brad Knighton; Chris Tierney, Claude Dielna, Benjamin Angoua, Andrew Farrell; Scott Caldwell (70’ Xavier Kouassi), Gershon Koffie; Diego Fagundez, Lee Nguyen, Teal Bunbury (79’ Juan Agudelo); Krisztián Németh (70’ Kei Kamara)

Substitutions Not Used: Cody Cropper, Antonio Mlinar Delamea, Je-Vaughn Watson, Kelyn Rowe