Catalan politicians Josep Rull, left, Jordi Sanchez and Jordi Turull, right, leave after collecting their credentials at the Spanish parliament in Madrid, Spain, Monday, May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official credentials. The five, along with other defendants, are being held in pre-trial jail. They face several years in prison if found guilty of rebellion. (AP Photo/Bernat Armangue)

MADRID (AP) — The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament last month picked up their official credentials under police escort on Monday.

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

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

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

Police transported them from prison to the Parliament buildings. They all wore suits and spoke with fellow lawmakers without the visible presence of uniformed police escorts once inside, as seen in televised images.

Despite the media ban, 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.

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.

The leader of the Catalonian ERC party Oriol Junqueras, centre, prepares to sign some documents and collect his credentials alongside the ERC parliamentary spokesperson Gabriel Rufian, right, inside the Spanish parliament in Madrid, Spain, Monday May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official parliament credentials. The Supreme Court is allowing the five politicians to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday. (J.J. Guillen/Pool Photo via AP)
The leader of the Catalonian ERC party Oriol Junqueras, centre, leaves after collecting his credentials at the Spanish parliament in Madrid, Spain, Monday, May 20, 2019. 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 other defendants, are being held in pre-trial jail. They face several years in prison if found guilty of rebellion. (AP Photo/Bernat Armangue)
Jordi Sanchez, president of the Catalan National Assembly, center, prepares to sign some documents and collect his credentials inside the Spanish parliament in Madrid, Spain, Monday May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official parliament credentials. The Supreme Court is allowing the five politicians to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday. (J.J. Guillen/Pool Photo via AP)
The leader of the Catalonian ERC party Oriol Junqueras leaves after collecting his credentials at the Spanish parliament in Madrid, Spain, Monday, May 20, 2019. 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 other defendants, are being held in pre-trial jail. They face several years in prison if found guilty of rebellion. (AP Photo/Bernat Armangue)
Catalan politician Jordi Sanchez gestures a thumbs up to the media after collecting his credential at the Spanish parliament in Madrid, Spain, Monday, May 20, 2019. Five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official credentials. The five, along with other defendants, are being held in pre-trial jail. They face several years in prison if found guilty of rebellion. (AP Photo/Bernat Armangue)
The leader of the Catalonian ERC party Oriol Junqueras, center, speaks with the ERC spokesperson for the parliament Gabriel Rufian, right, at the Spanish parliament in Madrid, Spain, Monday May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official parliament credentials. The Supreme Court is allowing the five politicians to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday. (J.J. Guillen/Pool Photo via AP)
The leader of the Catalonian ERC party Oriol Junqueras, center, speaks with the ERC spokesperson for the parliament Gabriel Rufian, right, at the Spanish parliament in Madrid, Spain, Monday May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official parliament credentials. The Supreme Court is allowing the five politicians to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday. (J.J. Guillen/Pool Photo via AP)
Catalan Councillor Jordi Turull, left, signs documents inside the Spanish parliament in Madrid, Spain, Monday May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official parliament credentials. The Supreme Court is allowing the five politicians to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday.(J.J. Guillen/Pool Photo via AP)
The leader of the Catalonian ERC party Oriol Junqueras, 3rd right, councilor Josep Rull, 5th right, and Jordi Sanchez, president of the Catalan National Assembly, 4th left, sign documents inside the Spanish parliament in Madrid, Spain, Monday May 20, 2019. The five separatist leaders on trial for Catalonia's 2017 secession attempt who were elected to the Spanish Parliament in April 28 elections have been escorted by police to pick up their official parliament credentials. The Supreme Court is allowing the five politicians to get their credentials on Monday and attend the opening session of the new Parliament on Tuesday. (J.J. Guillen/Pool Photo via AP)