Zambia’s top court ruled Friday that President Edgar Lungu is eligible to run for re-election in 2021 polls after an opposition party argued he would exceed the constitution’s two term limit.

Lungu completed former president Michael Sata’s term after he died in 2015 before winning a full term in his own right in 2016.

“The presidential tenure starting on January 25, 2015 to September 13, 2016 cannot be considered as a full term,” said constitutional court judge Hildah Chibomba.

Lungu announced in January 2017 that he would seek a fresh five-year term in 2021, prompting opposition parties to block him.

The opposition United Party for National Development and the Law Association of Zambia lawyers’ association argued he was ineligible to run, having effectively served across two terms.

Three other opposition parties simply sought the court’s opinion on the matter.

“I hope the debate comes to an end. This is a victory for Lungu, it’s a victory for the (ruling) Patriotic Front and a victory for the people of Zambia,” said the party’s secretary general Davies Mwila who spoke outside court.

Hundreds of Lungu’s supporters celebrated outside the court following its ruling.