“I am so happy and excited. It’s a pleasure to be able to work here,” Guardiola said.

“I enjoy working with our players every day and we will try to do our best together in the coming years.

“As a manager, you have to feel good to be with the players –- and I feel good.”

Guardiola had one season left on his City deal before signing the new two-year extension.

If he completes the whole length of his new contract, Guardiola will have spent five years at City, longer than his time in charge of Barcelona and Bayern Munich.

The Spaniard left Barcelona after four seasons as manager to take a sabbatical and spent three years at Bayern before joining City in 2016.

Throughout the second half of the season, Guardiola had said he did not intend to discuss his future until the summer.

But City’s Abu Dhabi-based owners have given the green light to the improved terms within four days of City’s last game of the season — a 1-0 win at Southampton that took them to the 100-point milestone.

City scored 106 goals and claimed 32 wins, both Premier League records, with the only frustration their Champions League quarter-final exit against Liverpool.

City chairman Khaldoon Al Mubarak saluted Guardiola’s ability to unify his squad of rising young talents and established stars.

“In his two seasons with us, he has fostered an incredible spirit within the squad and significantly contributed to our progress both on and off the field,” he said.

“In doing so he has embodied the passion and commitment we all have for the club.

“I am very much looking forward to the continued impact of his work and to fulfilling our shared ambitions in the coming seasons.”