German prosecutors have ordered the immediate release of ex-Catalan leader Carles Puigdemont after he posted 75,000 euros (£65,000) bail.
The Schleswig prosecutors’ office said Puigdemont also provided authorities with an address in Germany where he will reside pending a decision in his extradition case.
The 55-year-old was detained on March 25 after crossing the border from Denmark.
Spain is seeking his extradition for rebellion and misuse of public funds in organising an unauthorised referendum last year on Catalonia’s independence from Spain.
The state court in Schleswig ruled on Thursday that Puigdemont cannot be extradited for rebellion because the equivalent German law presumes the use or threat of force sufficient to bend the will of authorities.