Maxi Moralez’s new deal means he will play for NYCFC through the 2021 season. (Winslow Townson-USA TODAY Sports)

NEW YORK – New York City FC Thursday announced that midfielder Maxi Moralez has agreed to a new two-year Designated Player contract with MLS and the club.

The extension will keep the Argentine with the Major League Soccer club through the 2021 season.

The amount of Moralez’s contract was not known. In the recent MLS Players Association salary survey, he earned a base salary and guaranteed compensation of $2,000,000.04 as the team’s highest paid player.

Moralez has scored 20 goals and assisted on 45 others, a club record, in MLS action since arriving from Mexican side Club León prior to the 2017 season.

Recently he became the third player in MLS history to record 20 or more assists in a season. With one game remaining, Moralez leads the league in assists and looks likely to become the first NYCFC player to top the charts in that category.

“I’m very happy to extend my contract with the club for two more years,” Moralez said. “I want to thank the club and the fans for letting me be a part of this team. The decision was easy because we are a family and when you feel that way it makes it easier.

“To the fans, thank you for all the support you have given me. I hope you continue to enjoy watching us playing game after game as we try to accomplish our goal of becoming champions.”

In June, Moralez was named to the MLS all-star team and played in the all-star game for the first time. He joined David Villa, Andrea Pirlo, Frank Lampard and teamcaptain Alex Ring as the only NYCFC players to feature in league’s marquee event.

Moralez was named MLS player of the month for June, finishing with three goals and six assists in three matches. The club went undefeated in league play that month and won two Lamar Hunt U.S. Open Cup matches in which Moralez started.

“We’re very excited to have Maxi extend his contract with NYCFC,” sporting director Claudio Reyna said. “Since he joined our club three years ago, his contributions on and off the pitch have been clear to everyone. He’s a role model, a top professional and the best compliment I can give him is that he makes every player around him better.

“He’s accepted his role as a leader within the team and his influence on the pitch has been tremendous. I know how much Maxi loves the club and how motivated he is to bring championships to NYCFC.”

Moralez became sixth NYCFC player to sign a contract extension in the past 12 months. He joins Ring, defenders Alex Callens, Maxime Chanot, and Anton Tinnerholm, and goalkeeper Sean Johnson as players who have committed their long-term futures to the team.

“Maxi is an incredible football player,” head coach Dome Torrent said. “He’s having one of the best seasons in MLS history, but for him it’s about more than the individual performance. He cares so much about the other players on the pitch. He always wants what’s best for New York City FC.

“He works extremely hard and deserves everything that football has given him. We’re happy he has signed with us for two more years.”

NYCFC, which has clinched the Eastern Conference title and earned a first-round bye in the MLS Cup Playoffs, finished its regular season at the Philadelphia Union Sunday.