A van veered onto a promenade in central Barcelona on Thursday, killing 13 people and injuring 100. Spain authorities called it a terrorist attack and said 15 people were seriously injured.
Australia confirmed three of its citizens were injured; two others were Taiwanese and one was from Hong Kong, according to their governments. Germany was investigating whether its citizens were among the dead or injured.
The Catalan regional government said citizens from 24 countries were among the people killed and injured during the Barcelona van attack.
Police are working on the theory that the Cambrils and Barcelona attacks are connected, as well as a Wednesday night explosion in the town of Alcanar in which one person was killed.
Media reports said a car crashed into a police vehicle and nearby civilians and police shot the attackers, one brandishing a knife. Police did not immediately say how the attack was carried out.
The ISIS claimed responsibility, saying in a statement on its Aamaq news agency that the attack was carried out by 'soldiers of the Islamic State' in response to the extremist group's calls for followers to target countries participating in the coalition trying to drive it from Syria and Iraq.
Others were ushered inside shops by officers with their guns drawn or fled in panic, screaming and carrying young children in their arms.
The late afternoon attack in the city's Las Ramblas district left victims sprawled in the historic street, spattered with blood or writhing in pain from broken limbs.
Early Friday, Catalan police said they shot and killed five suspects in response to a terrorist attack in the seaside resort town of Cambrils, south of Barcelona.
After the afternoon attack, Las Ramblas went into lockdown.