A top Catalan lawmaker who spent the night in a Madrid prison as part of a wide-ranging rebellion investigation stemming from the Spanish region's declaration of independence was cleared for release Friday after posting bail.

Spain's Supreme Court said the judge who jailed and set bail Thursday for Carme Forcadell, the speaker of the Catalonia Parliament, freed Forcadell after the 150,000 euros ($175,000) bond was registered.

Forcadell and five other Catalan lawmakers are being investigated for the actions that led to the regional Parliament's Oct. 27 vote to declare independence from Spain.

After questioning the lawmakers, magistrate Pablo Llarena jailed only Forcadell immediately. He ordered four to pay 25,000-euro ($29,000) bail in one week to remain out of custody and released another who opposed the declaration of Catalonia as a separate republic.

In his ruling, Llarena wrote that all "have expressed that either they renounce future political activity or, those who want to remain active, will do it renouncing any actions outside the constitutional framework."

Forcadell, long one of the leading figures of the Catalan independence movement, testified Thursday that the independence declaration was "symbolic," according to lawyers familiar with the proceedings.

Spanish Foreign Minister Alfonso Dastis told Cope radio Friday that it "remains to be seen" if Forcadell will follow Spanish laws and court rulings preventing Catalan lawmakers from unilaterally seceding. If she doesn't, Datis expects the judge to consider revoking Forcadell's bail.

Eight members of the now-defunct Catalan government remain jailed in a related rebellion case. Former regional president Carles Puigdemont and four other ex-cabinet members fled to Belgium where they are fighting extradition.

Two other grassroots secession group leaders have also been jailed in a parallel sedition probe.

Spain's Constitutional Court warned that the Parliament's Oct. 27 vote declaring a new Catalan republic would be illegal. Most opposition lawmakers boycotted the session.

The Spanish government responded by seizing control of the wealthy northeastern region, the first time in the four decades since Gen. Francisco Franco's dictatorship ended that Madrid removed powers from any of the country's 17 regions.

Central authorities dismissed the Catalan regional president and his government, dissolved the parliament and called a new regional election for Dec. 21.

Catalonia, with 7.5 million people, represents a fifth of Spain's gross domestic product and polls show its people roughly evenly divided over independence. Puigdemont claimed a banned Oct. 1 secession referendum gave it a mandate to declare independence.