Senior European Union figures have rallied behind embattled Spanish prime minister Mariano Rajoy, condemning the authorities in Catalonia for holding an illegal referendum on independence that has plunged Spain into political crisis.

European Commission Vice-President Frans Timmermans led a chorus of criticism over Sunday's violence-marred vote in the northern Spanish region.

He made no mention of the almost 900 people hurt in the police action to stop the poll.

Wary of interfering in Spain's domestic affairs, the EU representatives called for talks between the government in Madrid and Catalan authorities, but shied away from suggesting that the bloc could play a peace-making role, despite appeals from Catalonia for European mediation.

"There is a general consensus that the regional government of Catalonia has chosen to ignore the law," Mr Timmermans told Euro-MPs at the European Parliament in Strasbourg, France.

"Respect for the rule of law is not optional, it is fundamental," he said.

"You cannot ignore the law."

Not all of the MPs backed the senior officials' position, however.

A Catalan flag was removed from the plenary at the demand of a Spanish member, while some parliamentarians displayed signs supporting the referendum or calling for Mr Rajoy to resign.

Urging the pro-European region's representatives and Mr Rajoy's government to come to the negotiating table, Mr Timmermans said: "All lines of communication must stay open. It's time to talk, to find a way out of the impasse."

The head of the biggest political group in the parliament, Manfred Weber - a Rajoy ally - said he was "very sorry for all those who were hurt," Catalan citizens and police alike, but warned that demonstrations cannot replace democratic processes.

He saw no European mediation role, saying: "The EU has neither the will nor the right to intervene in a true liberal democracy such as Spain."

Mr Weber also had another warning for pro-European Catalonia: "Please keep in mind: who leaves Spain, leaves the European Union."

Greens group leader Ska Keller was one of the few to condemn the police crackdown against what was, in the main, passive resistance.

"This was massive police violence against people and that was beyond any proportionality," she said.

"Violence so disproportionate cannot be justified. No buts and no excuses, whatever you think about the referendum."

She added that Mr Rajoy's strategy of using justice and police means to thwart the poll rather than dialogue has failed.

Ms Keller also accused the EU Commission of sitting on the fence and failing in its duty as the enforcer of EU laws.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.