Togo's parliament has voted to reinstate the two-term limit for presidents, but the change does not apply to the current leader.
President Faure Gnassingbé will be eligible to run in future elections in 2020 and 2025, meaning he could potentially remain in power until 2030.
Opposition politicians wanted the new cap to apply to President Gnassingbé but the ruling party proposal won out.
The announcement was made shortly before midnight after 90 out 91 MPs cast a secret ballot in favour of the constitutional revisions.
The matter has stirred controversy in recent years.
Yet the changes are not so surprising given that two-thirds of the representatives are allied to the governing party, following last year's legislative election which the opposition boycotted.
During a debate in parliament, several MPs threatened to boycott the vote over a proposal to also extend the presidential mandate to seven years.
In the end, lawmakers voted to stick with five years.
The Gnassingbé family is the longest-running political dynasty in Africa - Faure Gnassingbé succeeded his father in 2005 after his more than 50 years of autocratic rule.
Have your say
More World Headlines
- White House tells ex-aide not to testify
- 12 Jihadists killed as Egypt investigates bomb explosion
- Kenya warns foreigners running illegal betting firms
- The Indian Dalit man killed for eating in front of upper-caste men
- Boat carrying Uganda footballers capsizes
- Saudi Arabia gives Sudan junta $250m
- Boat packed with footballers capsizes in Lake Albert
- Billionaire technology investor to pay entire class's student loans
- Trump: War would mean 'end of Iran'
- Bodies of 'twins' found in clean-up of Kenya river
- Trump breaks silence amid Alabama abortion ban row
- Blast injures tourists near Giza pyramids
- US lifts steel and aluminium tariffs on Canada
- Kenya's ex-President ordered to pay $10m for land grab
- Former Belgian king to be fined over $5,000 a day until he takes paternity test