Two of the four surviving suspected members of a 12-member cell that carried out deadly twin attacks in Spain last week were charged on Tuesday with terror offences.

One was released and one faces further investigation.

Here is what we know about the men who are thought to have planned and carried out the vehicle rampages in Barcelona and the seaside resort of Cambrils that left 15 dead and over 100 injured.

None were previously known to police for terror-related acts, though some had been involved in petty crime.

TWO DETAINED

Mohamed Houli Chemlal

A 20-year-old Spaniard born in Melilla, a Spanish territory in northern Morocco.

He was injured in an explosion believed to have been accidentally detonated by the suspects themselves in their makeshift bomb factory in the seaside town of Alcanar.

After a preliminary hearing before the judge, he was remanded in custody and charged with terror related offences.

Driss Oukabir

Moroccan, aged 28. He was arrested Thursday in Ripoll, a town in northern Catalonia, where many of the suspects grew up.

He rented the van that ploughed into crowds in Barcelona, leaving 13 dead in its wake. Initially, he said his ID was stolen.

In court on Tuesday, he told the judge that he rented the van for a move.

He has been remanded in custody and charged with terror related offences.

RELEASED

Mohamed Aalla

Moroccan , 27, also arrested in Ripoll. He told the court that an Audi A3 used in last week's attack in Cambrils was registered under his name for insurance reasons but used by his younger brother Said Aalla.

The judge granted him conditional release, saying evidence against him was weak. He was ordered to report to the authorities weekly and is not allowed to leave Spain.

Salh El Karib

Moroccan, aged 34 according to Spanish media. He was also arrested in Ripoll. A friend of Driss, he manages a store that allows people to make calls abroad. He bought at least two plane tickets for Driss Oukabir with his credit card.

The judge gave himself three more days to decide if he should be remanded or released from custody.

DEAD

Younes Abouyaaqoub

For several days the 22-year-old Moroccan became Spain's most wanted man as the on-the-run driver of the van that ploughed through crowds in Barcelona, killing 13 people.

Police say he then stabbed to death 34-year-old Pau Perez in order to steal his car to make a getaway.

Abouyaaqoub was shot dead by police on Monday after he was sighted in a village not far from Barcelona.

He is blamed for 14 of the 15 deaths in the attacks.

Abdelbaki Es Satty

A 44-year-old imam in Ripoll. He is suspected of having radicalised the young men in the terror cell.

He died in the explosion in Alcanar, police have confirmed.

He was jailed in Spain for drug trafficking from 2010 to 2014, police said.

He also spent time in the Brussels suburb of Machelen between January and March 2016.

Described by those who knew him as a discreet and religious man, he had recently asked for a holiday from the mosque he was preaching in to return to Morocco for personal business.

Moussa Oukabir

Initially thought to be the Barcelona attacker, the 17-year-old Moroccan was killed by police in Cambrils after the car he was in hit pedestrians before the five suspects traveling in the vehicles jumped out and stabbed people, killing a woman.

Mohamed Hichamy

Moroccan, 24, he was also killed in Cambrils.

Omar Hichamy

Moroccan, Mohamed's brother, he was also shot in Cambrils. His age has not been released.

Said Aalla

Moroccan, 18, killed in Cambrils. It would have been his birthday on August 25.

"A friend apparently called him on Thursday at 3:00 pm (13:00 GMT) and he went out for a drive," Yasmila, a neighbour in Ripoll, told AFP. The Barcelona attack took place at 4:50 pm.

Houssein Abouyaaqoub

The younger brother of Younes, the Barcelona attacker.

An adept climber and skier according to pictures on social media published by Spain's La Sexta television, he too was probably radicalised.

He was also killed by police in Cambrils.

Youssef Aalla

He was one of three men at the house in Alcanar when the explosion occurred. He is believed killed in the blast but his remains have yet to be identified by investigators.