A trial involving more than 560 suspected members of the Barrio 18 criminal gang has begun in El Salvador, with the defendants facing accusations linked to more than 14,000 alleged crimes committed over a period of more than a decade.

The suspects are accused of offences dating back to 2012, including homicide, extortion and rebellion, in one of the largest gang-related court proceedings undertaken in the Central American country.

The trial began on Tuesday, with hundreds of defendants attending the proceedings through video links from prison facilities. Images from the hearing showed prisoners dressed in white uniforms, with their heads shaved and their hands and feet shackled as they followed the court session.

According to prosecutor Max Muñoz, more than 470 of the defendants are currently in custody, while approximately 90 others are being tried in absentia.

Most of those in custody joined the proceedings virtually from the country's high-security prison in Tecoluca, commonly known as a mega-prison, which was constructed under President Nayib Bukele's administration.

Muñoz said the defendants were also facing rebellion charges, arguing that their alleged activities had undermined the country's democratic state.

However, the mass trial has attracted criticism from human rights organisations and United Nations experts, who have raised concerns about the rights of those facing prosecution.

Many of the defendants have reportedly spent years in detention without being formally charged or having evidence presented against them.

United Nations experts have criticised the use of mass trials, warning that such proceedings could undermine the right to defence and the presumption of innocence.

In their assessment, handling hundreds of accused people in a single trial risks limiting their ability to challenge the allegations individually and receive a fair hearing.

The case is taking place against the backdrop of El Salvador's ongoing state of emergency, which was introduced in March 2022 as part of President Bukele's campaign against organised criminal gangs.

The emergency measures expanded the government's powers to arrest people suspected of gang membership or providing support to criminal groups. They also suspended some constitutional rights.

Since the measures were introduced, tens of thousands of suspected gang members have been arrested. However, human rights organisations have repeatedly raised concerns over alleged arbitrary detentions and the treatment of people held under the emergency measures.

The government has defended its approach, saying the crackdown has helped reduce crime and made the country safer. Supporters of Bukele's tough security policies point to a sharp decline in the murder rate following the campaign against gangs.

The latest proceedings are the second major mass trial involving alleged gang members to begin in El Salvador this year.

In April, another mass trial involving 485 suspected leaders of the Mara Salvatrucha gang, commonly known as MS-13, began. That case is still awaiting a verdict.

Both Barrio 18 and MS-13 originated in Los Angeles in the United States before expanding their operations into Central America, where they became major criminal organisations.

The United States designated both groups as foreign terrorist organisations last year.

As the Barrio 18 trial continues, attention is expected to remain on the prosecution's evidence and whether the proceedings will address concerns raised by rights groups over due process and the rights of the accused.