BERLIN — A German court ruled on Thursday that Carles Puigdemont, the former Catalan leader wanted for prosecution in Spain, may not be extradited on a charge of rebellion and can be released on bail, pending a ruling on whether he can still be handed over on a lesser charge.

The regional court in the state of Schleswig-Holstein ruled that the charge of rebellion could not be honored in Germany “because evidence of ‘violence’ is not present,” potentially dealing a blow to Spanish efforts to extradite and prosecute other Catalan separatist leaders.

Prosecutors in Germany must still decide whether Mr. Puigdemont should be extradited for the other charge on which he is wanted, corruption related to the misuse of public money. While that decision is pending, Mr. Puigdemont can be freed on bail of 75,000 euros, or nearly $92,000.

Wolfgang Schomburg, the senior German lawyer on Mr. Puigdemont’s defense team, said that bail would be posted by supporters of Mr. Puigdemont on Friday morning. Mr. Puigdemont’s Twitter account, which is administered by an aide, on Thursday posted the message: “See you tomorrow. Many thanks to everyone!”