Nigeria has begun the prosecution of more than 500 people accused of involvement in militant attacks in one of the country's largest ever terrorism trials.

The suspects face charges linked to aiding and abetting terrorism, particularly in the north-east where an insurgency by the Boko Haram Islamist group began 17 years ago.

Since then, insecurity has spread to many other areas of the West African nation, placing rural communities at the mercy of emerging militant groups and gangs.

The mass trial opened on Tuesday at a high court in Abuja, with 227 suspects arraigned before 10 judges, according to Attorney General Lateef Fagbemi.

Hundreds have lost their lives in bombings and assaults across Nigeria this year. However, prosecutions for terror attacks have been rare, with many suspects detained for years without trial.

Security was tight during the court session, featuring heavily guarded convoys under military and police supervision, with international observers present.

Five individuals have already been sentenced, receiving prison terms ranging from seven to 20 years for supplying resources to militant groups.

Fagbemi stated that these proceedings reflect the government’s commitment to justice, and security expert Bashir Galma recognized the trial as a significant step in Nigeria's anti-terrorism efforts.