A Paris appeals court has rejected Nicolas Sarkozy's appeal against his conviction for attempting to secure campaign funding from Libya for his 2007 election bid. The court upheld the five-year prison sentence imposed last year, calling the offence "unprecedented" in French history since 1958.

Sarkozy, 71, was originally convicted of criminal association. He served 20 days in prison before appealing. The prosecution argued Sarkozy led a conspiracy to raise money from the late Libyan leader Muammar Gaddafi. His defence claimed no Libyan funds ever entered his campaign coffers.

The Paris appeals court found Sarkozy played a "decisive role" in the scheme and was its "sole beneficiary". The court also acquitted him of corruption charges, citing presidential immunity at the time he was in office.

Sarkozy intends to appeal to France's highest criminal court, the Court of Cassation. His sentence will not be enforced until that court issues its verdict. He became the first former French head of state since World War II leader Philippe Pétain to serve prison time.

Sarkozy served as president from 2007 to 2012. He has also been convicted in two other cases involving election spending and attempting to extract favours from a judge. He and his wife Carla Bruni-Sarkozy face trial next year over charges related to witness tampering in connection with his election finance conviction.