A manhunt was underway for the driver of a van that mowed through crowds of tourists on Barcelona's most famous avenue on Thursday, killing at least 13 people in an attack that was claimed by Daish.
Authorities said the death toll could rise, with more than 100 people injured, some seriously.
Police said they arrested two men, a Moroccan and a man from Spain's north African enclave of Melilla, though neither was the driver. Witnesses said the driver fled on foot.
It was still not clear how many attackers had been involved.
Hours beforehand, one person was killed in an explosion in a house in a town southwest of Barcelona, in an incident linked to the attack, police added. Residents of the house were preparing explosives, a police source said.
As the manhunt continued into the night, police said several attackers were killed in a shootout during an operation against what they called a possible "terror attack" in Cambrils, another town south of Barcelona.
Earlier in Barcelona, witnesses said the white van zigzagged at high speed down Las Ramblas, a busy avenue thronged with tourists, ramming pedestrians and cyclists, sending some hurtling through the air and leaving bodies strewn in its wake.
Islamic State's Amaq news agency said: "The perpetrators of the Barcelona attack are soldiers of the Islamic State and carried out the operation in response to calls for targeting coalition states" - a reference to a U.S.-led coalition against the Sunni militant group.
Spain has several hundred soldiers in Iraq providing training to local forces in the fight against Islamic State, but they are not involved in ground operations.
The Daish claim could not immediately be verified.
If the involvement of Islamist militants is confirmed, it would be the latest in a string of attacks in the past 13 months in which they have used vehicles to bring carnage to the streets of European cities.
That modus operandi - crude, deadly and very hard to prevent - has killed well over 100 people in Nice, Berlin, London and Stockholm.
British tourist Keith Welling, who arrived in Barcelona on Wednesday with his wife and 9-year-old daughter, said they saw the van drive past them down the avenue and took refuge in a restaurant when panic broke out and the crowd started running.
"People were shouting and we heard a bang and someone cried that it was a gunshot ... Me and my family ran into the restaurant along with around 40 other people.
"At first people were going crazy in there, lots of people crying, including a little girl around three years old."
It was the deadliest attack in Spain since March 2004, when militants placed bombs on commuter trains in Madrid, killing 191 people and wounding more than 1,800.
Spanish Prime Minister Mariano Rajoy announced three days of official mourning for what he called a "jihadist attack."
The Spanish royal household said on Twitter: “They are murderers, nothing more than criminals who are not going to terrorise us. All of Spain is Barcelona.”
U.S. President Donald Trump said: "The United States condemns the terror attack in Barcelona, Spain, and will do whatever is necessary to help."
He added: "Be tough & strong, we love you!"
BODIES ON THE GROUND
Police said the two men detained on Thursday had been arrested in two towns, Ripoll and Alcanar, both in the region of Catalonia, of which Barcelona is the capital.
The explosion was also in the town of Alcanar, in the early hours of Thursday. One person died and another was injured in that incident, police said.
Police said they also shot dead on Thursday a man who had driven a car into a police checkpoint in Barcelona, though they had no evidence he was connected with the van attack.
Mobile phone footage showed several bodies strewn along the Ramblas, some motionless. Paramedics and bystanders bent over them, treating them and trying to comfort those still conscious.
Around them, the boulevard was deserted, covered in rubbish and abandoned objects including hats, flip-flops, bags and a pram.
Belgium's foreign minister said a Belgian was among the dead.
Regional head Carles Puigdemont said people had been flocking to hospitals in Barcelona to give blood.
Susana Elvira Carolina, 33, who works at a shop on Las Ramblas, had just entered her building when the van struck.
"We had a window and you could see the bodies lying from there, you could see how people were run over ... We were shutting down the blinds but people kept coming in and we had to keep it open so they could enter the shop."
TOURIST DRAW
The incident took place at the height of the tourist season in Barcelona, which is one of Europe's top travel destinations with at least 11 million visitors a year.
French President Emmanuel Macron, whose nation has suffered some of Europe's deadliest militant attacks in recent years, tweeted: "All my thoughts and France's solidarity to the victims of the tragic attack in Barcelona."
A Vatican spokesman said Pope Francis was praying for the victims and wanted to express his closeness to all Spanish people, especially the victims and their families.
Authorities in Vic, a small town outside Barcelona, said a van had been found there in connection with the attack. Spanish media had earlier reported that a second van had been hired as a getaway vehicle.
Barcelona is the capital of the wealthy northeastern region of Catalonia, which plans to hold a popular vote on Oct. 1 on whether it should secede from Spain. The central government says the vote cannot go ahead because it is unconstitutional.
Before Thursday's attack, government data showed that police had arrested 11 suspected jihadists in the Barcelona area so far this year, more than anywhere else in Spain.
Agencies
Fri Aug 18 2017
Police said they arrested two men, a Moroccan and a man from Spain's north African enclave of Melilla, though neither was the driver. - REUTERS pic
Kampung Tanjung Kala residents affected by flooded bridge every time it rains heavily
Almost 200 residents from 60 homes in Kampung Tanjung Kala have ended up stuck when their 200-metre (m) long concrete bridge flooded.
COP29 climate summit draft proposes rich countries pay $250 billion per year
The draft finance deal criticised by both developed and developing nations.
Bomb squad sent to London's Gatwick Airport after terminal evacuation
This was following the discovery of a suspected prohibited item in luggage.
Kelantan urges caution amidst northeast monsoon rains
Kelantan has reminded the public in the state to refrain from outdoor activities with the arrival of the Northeast Monsoon season.
Former New Zealand PM Jacinda Ardern receives UN leadership award
Former New Zealand prime minister Jacinda Ardern was given a global leadership award by the United Nations Foundation.
ICC'S arrest warrants for Netanyahu, Gallant an apt decision - PM
The decision of the ICC to issue arrest warrants against Benjamin Netanyahu and Yoav Gallant is apt, said Datuk Seri Anwar Ibrahim.
KTMB provides two additional ETS trains for Christmas, school holidays
KTMB will provide two additional ETS trains for the KL Sentral-Padang Besar route and return trips in conjunction with the holidays.
BNM'S international reserves rise to USD118 bil as at Nov 15, 2024
Malaysia's international reserves rose to US$118.0 billion as at Nov 15, 2024, up from US$117.6 billion on Oct 30, 2024.
Findings by dark energy researchers back Einstein's conception of gravity
The findings announced are part of a years-long study of the history of the cosmos focusing upon dark energy.
NRES responds to Rimbawatch press release on COP29
The Ministry of Natural Resources and Environmental Sustainability (NRES) wishes to offer the following clarifications to the issues raised.
Online Safety Bill and Anti-Cyberbullying Laws must carefully balance rights and protections
The Online Safety Advocacy Group (OSAG) stands united with people in Malaysia in the fight against serious online harms.
Malaysia's inflation at 1.9 pct in Oct 2024 - DOSM
Malaysia's inflation rate for October 2024 has increased to 1.9 per cent, up from 1.8 per cent in September this year.
Saudi Arabia showcases Vision 2030 goals at Airshow China 2024
For the first time, Saudi Arabia is participating in the China International Aviation & Aerospace Exhibition held recently in Zhuhai.
King Charles' coronation cost GBP 71mil, govt accounts show
The coronation of Britain's King Charles cost taxpayers GBP72 million (US$90 million), official accounts have revealed.
Couple and associate charged with trafficking 51.9 kg of meth
A married couple and a man were charged in the Magistrate's Court here today with trafficking 51.974 kilogrammes of Methamphetamine.
PDRM to consult AGC in completing Teoh Beng Hock investigation
The police may seek new testimony from existing witnesses for additional insights into the investigation of Teoh Beng Hock's death.
Thai court rejects petition over ex-PM Thaksin's political influence
Thailand's Constitutional Court rejects a petition seeking to stop Thaksin Shinawatra from interfering in the running the Pheu Thai party.
Abidin takes oath of office as Sungai Bakap assemblyman
The State Assemblyman for Sungai Bakap, Abidin Ismail, was sworn in today at the State Assembly building, Lebuh Light.
UPNM cadet officer charged with injuring junior, stomping on him with spike boots
A cadet officer at UPNM pleaded not guilty to a charge of injuring his junior by stomping on the victim's stomach with spike boots.
How Indian billionaire Gautam Adani's alleged bribery scheme took off and unraveled
The indictment was unsealed on Nov. 20, prompting a $27 billion plunge in Adani Group companies' market value.