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
- Tom Steyer: Trump 'has met' criteria for impeachment
- US House votes to condemn Trump's attacks on congresswomen
- Zuma says he received death threat after commission testimony
- I am not a racist - Trump insists
- Turkish sailors held hostage off Nigeria coast
- Shoppers find drug stash in their soap powder box
- Trump tweet row: Don't take the bait, congresswomen say
- WHO on high alert on possible Ebola outbreak
- May condemns Trump's 'go home' remark to congresswomen
- Zuma denies being 'king of corrupt people'
- Trump to congresswoman of colour: Leave the US
- Harrowing heroin addiction grips South Africa
- New York power cut: Supply restored in Manhattan
- Outcry as military leader names Burundi TV head
- Kismayo attack: At least 26 dead as gunmen storm Somali hotel