Spain’s government has said it would do whatever it takes to stamp out violence in Catalonia, where clashes between regional independence supporters and police have injured more than 200 people in two days.

“Everything is prepared and (the government) will act, if needed, with firmness, proportionality and unity,” a government statement said.

It said caretaker prime minister Pedro Sanchez was meeting with other national political leaders and “he doesn’t rule out any scenario”.

Many people in Catalonia have long fought for it to break away from Spain and become a new European country.

Spain Catalonia
A policeman uses a fire extinguisher on a burning barricade during clashes in Barcelona (Bernat Armangue/AP)

Demonstrations have traditionally been peaceful, but not always.

Violent clashes erupted in Barcelona and other Catalan towns after Spain’s Supreme Court on Monday handed nine separatist Catalan leaders lengthy prison sentences for their part in an October 2017 effort to achieve independence.

Rioting broke out Tuesday evening, when Barcelona police said 40,000 protesters packed the streets near the office of Spain’s government representative.

Protesters turned over metal barriers, set fire to rubbish bins and threw firecrackers and other objects at police.

The outnumbered police used foam bullets, batons and shields to battle the groups amid tense standoffs on Barcelona’s streets.

An organisation representing downtown Barcelona businesses, called Barcelona Abierta, said the violence in the city had caused “significant losses” and “deeply damaged” the image abroad of the popular tourist destination.

The disorder prompted Mr Sanchez, who is preparing for a general election for November 10, to consult with his party and other leading figures, some of whom are urging him to take a firmer hand.

Spain Catalonia
Pro-independence protesters march towards El Prat airport, on the outskirts of Barcelona, on Monday (Joan Mateu/AP)

Albert Rivera, leader of the Ciudadanos (Citizens) party, travelled to the Catalan capital Barcelona and said the country faced “a state of emergency”.

Popular Party leader Pablo Casado, a conservative, called for a government decree that would allow the central government to take over full control of the Catalan regional police, while the far-right Vox party wanted exceptional measures that would temporarily lift some civil rights.

On Wednesday, thousands of people joined five large protest marches across Catalonia that were set to converge on Barcelona on Friday.

They included families with children, elderly and young people, and banners reading “Libertat Presos Politics” (Freedom for political prisoners) — a reference to the prominent Catalan politicians and activists leaders sentenced by the Supreme Court.

They have grown into powerful symbols and a rallying point for the separatist movement.

Catalan regional president Quim Torra joined one of the marches, saying he wanted to be next to the people.

“These peaceful marches happening across the country (Catalonia) are the Catalan people’s best response” to the court’s verdict, Torra said.

Mr Torra, one of the separatist movement’s leaders, did not criticise the recent street violence.

Spain’s Interior Ministry said 54 members of Catalonia’s regional police force and 18 National Police officers were hurt in the protests on Tuesday.

Health authorities say they treated 125 people, both police and protesters.

Police made 29 arrests in Barcelona, where more than 150 street barricades were set ablaze by protesters, according to the Interior Ministry.

(Screenshot/@sanchezcastejon)
(Screenshot/@sanchezcastejon)

Similar protests turned violent in other towns in Catalonia, which has seen a rise in separatist sentiment over the past decade.

Roughly half of the region’s 7.5 million residents support independence, with the other half opposing a breakaway, according to polls.

The marches and sporadic street protests continued to disrupt traffic across the region. Flights and passenger movements at Barcelona airport have also been disrupted by protests.

Most impromptu protesters have responded to an online campaign by Tsunami Democratic. On Wednesday, the group issued a statement appealing for an end to the violence.

The Supreme Court found nine of 12 Catalan politicians and activists guilty of sedition and gave them prison sentences of nine to 13 years.

Four of them were additionally convicted of misuse of public funds. The other three were fined for disobeying court orders.

Meanwhile, the Spanish football league wants Barcelona’s game against Real Madrid to be moved out of the Catalan capital to avoid coinciding with a planned separatist rally.

Separatist groups in Catalonia have called for supporters to rally in Barcelona on October 26 when Barcelona are scheduled to host Madrid in the famous “clasico” grudge match.

The league has called on the Spanish football federation to shift the game to Madrid, and move the return match later in the season back to Barcelona.