Police have killed five suspected terrorists and made three arrests in two separate attacks - here are all the details so far.
Fourteen people have died in two terror attacks in Spain.
This is how the attacks, in Barcelona and the seaside town of Cambrils, unfolded:
:: On Thursday afternoon, a van veered on to Las Ramblas promenade in central Barcelona and drove through hundreds of people, swerving back and forth on the busy boulevard.
:: Thirteen people died and 100 more were hurt - 15 of them seriously.
:: The driver of the van fled on foot and a manhunt is ongoing.
:: After the rampage, people ran into shops and cafes and were locked inside for their safety.
:: Footage posted on social media show horrific images of bodies strewn along the pavement in pools of blood.
:: Islamic State said it carried out the attack, according to its Amaq agency.
:: At least 34 nationalities were among the victims, with a "small number" of Britons are known to have been affected so far.
:: An Australian boy is understood to be missing after the attack. Reports say his mother is in a serious condition in hospital.
:: Hours after the Barcelona attack, five people wearing fake explosive belts launched a van attack in the town of Cambrils, injuring several people including a police officer.
:: A woman critically injured in the Cambrils attack later died in hospital from her injuries.
:: The five suspected terrorists were killed during a police operation in Cambrils, a coastal town 62 miles southwest of Barcelona, shortly after 1am on Friday local time.
:: Authorities say the two attacks are linked.
:: Three men have been separately arrested in connection with the attacks. All of the men were arrested in Ripoll and in Alcanar. One of them is Moroccan and one is from the Spanish enclave of Melilla in North Africa.
:: The name and photograph of one suspect, Driss Oukabir, has been released by police. He reportedly handed himself in after seeing his photo on the news.
:: Authorities reveal an explosion that killed at least one person on Wednesday night - at a house in Alcanar, around 100 miles southwest of Barcelona - has been connected to the terror attacks. Police suspect those in the house were "preparing an explosive device".
:: These attacks are the worst to hit the country since 2004, when bombs ripped through commuters train in Madrid, killing 191 people.
Police released an image of suspect Driss Oukabir, a Moroccan national