Spain's acting prime minister Pedro Sanchez made a quick visit to Catalonia on Monday after a week of separatist unrest but spurned the pro-independence regional chief, accusing him of failing in his duty to restore order.

The northeastern region has been hit by seven consecutive nights of sometimes violent protests following the jailing last week of nine Catalan separatists found guilty of sedition over their role in leading a failed 2017 bid for independence.

During his visit to the regional capital Barcelona, Sanchez met police injured in the violence. The pro-independence regional chief, Quim Torra, had sought a meeting with Sanchez but was rebuffed.

The unrest is a challenge for Sanchez, who faces a parliamentary election next month, but also for the pro-independence regional authorities based in Barcelona.

Read more: How do the protests in Barcelona compare with those in Hong Kong?

Hundreds of peaceful protesters sang the Catalan anthem on Monday and waved placards urging Sanchez to "sit and talk" with Torra. Gerard Rodriguez, a 27-year-old nurse, said Sanchez had given "false excuses" for avoiding the meeting.

The government has said talks are impossible until Torra condemns the violence unequivocally. In a letter released by Sanchez's office on Monday, the prime minister accused Torra of failing in his duties to protect public safety, and said Torra had "turned his back" on the security forces.

In a written reply, Torra asked for "dialogue without conditions". His response made no mention of the violence. Torra had said on Saturday he has always condemned violence.

Footage shot by onlookers on Monday showed Sanchez being booed by members of staff as he left a Barcelona hospital where he had been visiting police injured in the clashes.

In a video published by a La Vanguardia on its website, hospital staff, some wearing white coats and scrubs, could be heard shouting "freedom for political prisoners" while holding up a sign calling for the release of the jailed separatists.

The issue of Catalan independence has dominated Spain's fractured political debate in recent years and is likely to continue to do so in the run-up to next month's ballot.

Spanish media reported that Torra tried to talk to Sanchez by telephone on both Saturday and Sunday, but was rebuffed.

A spokeswoman for the pro-independence party Esquerra Republicana de Catalunya (ERC), which is allied with Torra's group, condemned Sanchez for not talking directly to the Catalan government.

"Sanchez is refusing dialogue for the umpteenth time. (This shows) disrespect to the people of Catalonia," Marta Vilalta Torres said.

The leader of Spain's main opposition centre-right People's Party, Pablo Casado, on the other side, said Sanchez should react more strongly.

Spain's high court said on Monday it had ordered a raid on the office of Gonzalo Boye, lawyer for Catalonia's ex-president Carles Puigdemont. Spanish media said the raid was linked to another of the lawyer's clients, an alleged drug trafficker, and was not linked to Puigdemont himself.

But Puigdemont, who was head of the Spanish region during its failed 2017 bid to break away from Spain and now lives in self-imposed exile in Belgium, linked the raid to efforts to extradite him.

"Now that we're dealing with the third European (arrest) warrant, they try to make @boye_g's work difficult. They will not succeed in doing so," he wrote on Twitter.

Boye did not immediately respond to a request for comment.