An Egyptian appeals court on Monday upheld a one-year jail sentence for opposition politician Ahmad al-Tantawi, who was then arrested "inside the courthouse," his lawyer Nabeh Elganadi said.
Tantawi, who had hoped to run against President Abdel Fattah al-Sisi in elections last year, was found guilty of election campaign irregularities in February.
"The sentence at the time was suspended on bail until the appeal today," Elganadi said, adding that Tantawi was arrested as soon as the decision was declared.
The former lawmaker was also "barred from running in parliamentary elections for five years," according to human rights group the Egyptian Commission for Rights and Freedoms.
The Matareya Misdemeanour Court also upheld sentences against 22 members of Tantawi's campaign team, including its director Mohamed Aboul Deyar, of "one year in prison with hard abor," Elganadi said.
They had been convicted of "circulating election-related papers without official authorization" in the lead-up to the election, which Sisi won in his third landslide victory.
Tantawi had accused authorities of hampering his effort to collect the endorsements required to run in the presidential election.
Tantawi instead asked his supporters to fill out unofficial "popular endorsement" forms, a tactic the authorities labelled as tantamount to election fraud.
He ultimately collected only 14,000 endorsements -- well short of the 25,000 needed from at least 15 of Egypt's 27 governorates to enable him to run.
The former member of parliament withdrew his candidature before the December vote, citing harassment and obstruction.
The National Election Authority announced Sisi's victory on December 18 with 89.6 percent of the vote.