The five suspected terrorists shot dead in Cambrils are linked to the van attack in Barcelona and an explosion at a house in Alcanar, Catalan police believe.
Seven people were injured in Cambrils, including a police officer, early on Friday when a group launched a vehicle attack similar to that which left 13 people dead and over 100 injured in Barcelona on Thursday.
One person was killed in an explosion on Wednesday night at the property in Alcanar, where gas cylinders were found.
Two men charged with murder and membership of a terror organisation as judge orders a fourth suspect to be freed on bail.
Younes Abouyaaqoub was wearing a fake bomb vest when he was killed in the town of Subirats, about 30 miles west of Barcelona.
The man believed to be responsible for driving a van into pedestrians in Barcelona has been pictured as the death toll rises to 15.