Here is a timeline of how events unfolded in Alcanar, Barcelona and Cambrils.

Wednesday night – One person is killed in an explosion in Alcanar, which authorities believe is linked to the Barcelona van attack.

Thursday

Emergency workers on a blocked street in Barcelona after a terror attack
Emergency workers on a blocked street in Barcelona (Manu Fernandez/AP)

5pm – A white Fiat van speeds through Las Ramblas, a busy street in Barcelona. At least 13 people are killed and more than 100 others injured as the driver ploughs into the crowds along a 500m stretch of the pedestrianised area. The driver then flees, leaving a scene of widespread panic, with people running in waves away from the area.

7pm – In a tweet before 7pm, Catalonia’s police force says the protocol for terrorist attacks has been activated.

8pm – Two men are arrested in connection with the incident. One is named as Driss Oukabir, a 28-year-old Moroccan who is believed to have rented the van.

8.40pm – The Islamic State terror group claims responsibility for the attack.

Friday

Police officers stand near an overturned car at the spot where terrorists were intercepted by police in Cambrils, Spain
Police officers stand near an overturned car at the spot where terrorists were intercepted in Cambrils (Emilio Morenatti/AP)

1am – Seven people are reported injured when a group, said to be wearing “explosive belts”, launch a van attack in the coastal town of Cambrils, similar to the one in Barcelona. Footage posted on social media, which appears to have been filmed on the town’s beachfront promenade, shows bystanders running for cover and several gunshots are heard. Spanish police shoot four suspected terrorists dead and injure another.

3am – Police say the fifth suspect has died.

8am – Spanish police arrest a third person in Ripoll, and tweet that the belts worn by the five men shot dead in Cambrils were “simulated explosives”.

11.30am – Catalonian authorities say a woman who was critically injured in the Cambrils attack has died.

At around the same time, the Foreign Office says a “small number” of Brits were injured in the attacks.

1pm – Police say a fourth suspect had been arrested.

2pm – Buckingham Palace says The Queen had sent a message of sympathy to the King of Spain.