A politically charged trial of a dozen Catalan separatist leaders has started in Spain’s Supreme Court amid protests and the possibility of an early general election being called in the country.

The defendants are being tried on rebellion and other charges stemming from their roles in pushing ahead with a unilateral independence declaration in October 2017.

The declaration was based on the results of a divisive secession referendum that ignored a constitutional ban.

The trial, arguably Spain’s most important in four decades of democracy, started as the future of prime minister Pedro Sanchez’s minority government hinged on a last-minute change of position by Catalan pro-independence parties to back his 2019 budget.

Mr Sanchez could be forced to call an early election if the Catalan separatists, whose support brought the Socialists to power last year, do not change their current position of voting against his spending plan Wednesday.

Spain Catalonia Trial
Pro independence demonstrators gather outside the Spanish Supreme Court in Madrid (Andrea Comas/AP)

The separatists want Mr Sanchez to agree to talks on self-determination for their region, but the government argues that Spain’s constitution does not allow it.

Opening the parliamentary debate on Tuesday, Spanish Budget Minister Maria Jesus Montero told Catalan politicians that the government would “not give in to any blackmail by anybody”.

“Under no circumstance will we agree to include the right to self-determination in Catalonia in any talking points,” she said.

Meanwhile, Mr Sanchez appeared to put more pressure on his opponents by tweeting that “the right-wing and the separatists will vote against a budget that helps social causes”.

“They both want the same thing: a Catalonia that is divided and a Spain that is divided,” he wrote.

In response, Catalan politicians said that, despite the imminent vote, there was still time for the government to “rectify.”

Oriol Junqueras, left, speaks with his lawyer
Oriol Junqueras, left, speaks with his lawyer (Emilio Naranjo/AP)

Tensions between regional and central authorities peaked with the 2017 breakaway attempt but the conflict has been festering ever since.

The 7.5 million residents of Catalonia remain divided by the secession question.

In Barcelona, thousands marched to a central square on Tuesday, demanding independence and criticising Spain’s judiciary.

Some carried signs with the slogan, Self-determination Is Not A Crime.

Earlier, pro-independence activists briefly blocked highways and the entrance to the state prosecutor’s office before they were cleared by the regional police without incident.

In Madrid, right-wing protesters carrying national flags shouted as lawyers and three defendants who were free on bail entered the 18th-century convent that houses Spain’s Supreme Court.

Former Catalan Vice President Oriol Junqueras, the regional parliament’s former Speaker Carme Forcadell and the other 10 defendants weren’t expected to give evidence on Tuesday.

They sat on four benches in the middle of the courtroom.

The defendants face the Supreme Court in Madrid
The defendants face the Supreme Court in Madrid (Emilio Naranjo/AP)

The defendants sat facing a seven-judge panel headed by Supreme Court magistrate Manuel Marchena, who presided.

They held papers, smiled to each other at times and waved at relatives in the courtroom.

Mr Junqueras’ lawyer, Andreu Van den Eynde, was the first to speak, arguing that the cause goes “against political dissidence”.

“We are before an exceptional trial,” he told the judges, adding that “self-determination is the formula to avoid conflicts in the world”.

Catalan President Quim Torra, a fervent separatist who has had to apologise for anti-Spanish comments, followed the proceedings from the back of the courtroom, where 100 seats were reserved for defendants’ relatives, journalists and members of the public who lined up for hours to get one of the limited spots.

Carles Puigdemont at a news conference in Berlin
Carles Puigdemont at a news conference in Berlin (Markus Schreiber/AP)

Mr Torra later called the trial a “farce” and said any guilty verdicts would be appealed against to European courts.

“No court can put Catalan democracy on trial,” Mr Torra said.

“This case will end up in European and international courts, and we will win it.”

Among those not on trial is Carles Puigdemont, Torra’s predecessor who fled Spain.

He called for the 12 separatists to be absolved for their alleged crimes and called the trial “a stress test for the Spanish democracy”.

Addressing reporters at a news conference in Berlin, the former Catalan leader added: “I trust, however, that the Spanish state will take advantage of this chance to issue the correct sentence, which is absolution.”

Mr Puigdemont successfully avoided extradition to Spain when a German court refused to send him back on charges of rebellion last year.

Since then, he has campaigned in Europe for the Catalans to be able to settle their links to Spain in a vote.

Pedro Sanchez
Pedro Sanchez (Andrea Comas/AP)

Those who stayed behind and showed up in court are the ones standing trial.

Mr Junqueras, Mr Puigdemont’s number two at the time, faces up to 25 years in prison if found guilty of rebellion, while others charged with sedition or misuse of public funds could get shorter sentences if convicted.

The proceedings were broadcast live on television in a display of transparency that aims to fight the separatists’ attack on the court’s credibility.

Authorities in Spain have dismissed the notion that the trial is political and say it follows the European Union’s highest standards.

Proceedings were likely to last for at least three months.

The verdicts, and any sentences, will be delivered months later.