The constitutional changes were passed by China’s annual sitting of the National People’s Congress on Sunday.
The vote was widely regarded as a rubber-stamping exercise. Two delegates voted against the change and three abstained, out of 2,964 votes.
China had imposed a two-term limit on its president since the 1990s.
But Mr Xi, who would have been due to step down in 2023, defied the tradition of presenting a potential successor during October’s Communist Party Congress.
Instead, he consolidated his political power as the party voted to enshrine his name and political ideology in the party’s constitution – elevating his status to the level of its founder, Chairman Mao.
The constitution has been altered to allow Xi Jinping to remain as president beyond two terms and they would not have gone to this much trouble if that was not exactly what he intended to do.
There has been no national debate as to whether a leader should be allowed to stay on for as long as they choose. Quietly but surely Xi Jinping has changed the way his country is governed, with himself well and truly at the core.
The issue is not, however, without controversy.
Former state newspaper editor Li Datong wrote that scrapping term limits for the president and vice-president would sow the seeds of chaos – in a message sent to some members of the national congress.
“I couldn’t bear it any more. I was discussing with my friends and we were enraged. We have to voice our opposition,” he told BBC Chinese.
State media, however, have portrayed the changes as much-needed reform.
US President Donald Trump was criticised by some commentators for seeming to approve of Mr Xi’s unlimited rule, saying on Monday: “President for life… I think it’s great. Maybe we’ll have to give that a shot some day.”