France previously described Ryan’s detention as “arbitrary” and demanded his immediate release.

During his trial, prosecutors alleged he had co-operated with employees of France’s security services allegedly operating from the French embassy in Baku.

Prosecutors said Ryan had gathered information about Azerbaijan’s relations with Turkey, Iran and Pakistan, as well as companies linked to Russia and China.

Furthermore, Ryan was accused of recruiting Mamedli and arranging for him to meet French intelligence agents, who allegedly tasked him with recruiting Azerbaijanis and Russians at a Moscow university where he studied.

In Ryan’s final statement to the court, he denied spying and said he had acted unknowingly.

“I consider myself guilty only in that I should not have established contacts with some embassy employees, or that I should have shared information about them with the appropriate authorities,” Ryan told the court.

“I did not spy. I am not a spy, and during the court case I tried to prove this.”

France has argued that Ryan was caught in the cross-fire of diplomatic tensions, AFP notes.

Relations between the two countries soured in recent years, centred around France’s apparent support for Azerbaijan’s rival Armenia.

In November 2024, Azerbaijani President Ilham Aliyev accused France of alleged “crimes” against overseas territories like New Caledonia, after riots broke out on the French colony causing the death of fourteen people.

“The crimes of France in its so-called overseas territories would not be complete without mentioning the recent human rights violations,” said Aliyev during his speech at COP29 climate talks in Baku.

“The regime of President [Emmanuel] Macron killed 13 people and wounded 169… during legitimate protests by the Kanak people in New Caledonia.”

In response, France’s environment minister Agnès Pannier-Runacher cancelled her attendance at the 2024 conference.

However, in October Aliyev said that “past misunderstandings between the two countries” had been resolved after he met Macron in Copenhagen, AFP reports.