The five separatist leaders on trial for Catalonia’s 2017 secession attempt who were elected to the Spanish Parliament last month have picked up their official credentials under police escort.

The Supreme Court allowed the five to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday.

However, it will not allow them to participate in any meetings or speak to the press while at the Parliament in Madrid.

Spain Catalonia
Catalan politician Jordi Sanchez gestures a thumbs up to the media (Bernat Armangue/AP)

Former Catalan regional vice president Oriol Junqueras and three other high-profile separatists won seats in the Lower Chamber, while Raul Romeva won a seat in the Senate.

The five, along with others, are being held in prison pending trial.

They face several years in prison if found guilty of rebellion.

Police transported them from prison to the Parliament buildings.

They all wore suits and spoke with fellow politicians without the visible presence of uniformed police escorts once inside, as seen in televised images.

Spain Catalonia
Catalan councillor Jordi Turull, left, signs documents inside the Spanish parliament (JJ Guillen/AP)

Despite the media ban, Mr Junqueras posted a short video on Twitter in which he said “we are well because we are with friends” and asked for support for his party in Sunday’s European and municipal Spanish elections.

Mr Junqueras is running for a seat in the European Parliament.

He has said he will renounce his seat in the Spanish Parliament if he wins one in Europe.

The five, along with four other defendants, are being held in prison during the trial.

They face several years in prison and being banned from holding public office if found guilty of rebellion or other crimes.

Others, including ex-Catalan president Carles Puigdemont, fled Spain.

The Catalan secession bid two years ago plunged Spain into its biggest political crisis in decades.

The northeastern region’s 7.5 million residents are roughly split down the middle over whether to secede from Spain, according to opinion polls.