
NEW YORK — A van driver deliberately zigzagged into a crowd enjoying a sunny afternoon at Barcelona’s most famous pedestrian mall Thursday, killing at least 13 people and leaving 80 lying bloodied on the pavement.
It was the worst terrorist attack in Spain since 2004 and at least the sixth time in the past few years that assailants using vehicles as deadly weapons have struck a European city.
Hours later, the Catalan police said they foiled a second van attack, in the seaside town of Cambrils 70 miles to the south, fatally shooting at least five people who appeared to be wearing explosive belts, according to Spanish news reports. It was unclear how or if they were related to the Barcelona attack.
The police had cordoned off the Plaza de Cataluña and Las Ramblas in the heart of Barcelona, both tourist destinations, and began a chaotic pursuit for the attackers.
Two people were later arrested, including a Moroccan man whose identification documents had been used to rent the van. But the Barcelona police said neither was believed to be the driver, who escaped on foot and remained at large on Thursday night.
The Islamic State claimed responsibility for the Barcelona assault, which shattered a peaceful afternoon in one of Europe’s most picturesque cities. President Trump and other Western leaders condemned the attack and pledged cooperation.
Witnesses described people screaming and running for their lives as the van driver wove back and forth just after 5:30 p.m., apparently trying to hit as many people as he could. Police officers swept through the area near Las Ramblas, moving people out of the area.
Videos taken by witnesses posted online showed men, women, and children lying motionless on the ground amid broken umbrellas and chairs, in the shade of trees, many bleeding profusely, while paramedics and friends knelt to comfort them as police sirens wailed.
‘‘It was clearly a terror attack, intended to kill as many people as possible,’’ Josep Lluis Trapero, a senior police official for Spain’s Catalonia region, said late Thursday.
The Islamic State group 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.
Whitney Cohn, a mathematics teacher from Montebello, N.Y., was walking along the mall with her husband and two daughters, on the way back to her hotel after visiting a museum, when the van careened through the crowd, throwing people aside as screams pierced the air. She grabbed her daughters and started running. “It was flying,’’ Cohn said in an telephone interview from a nearby restaurant. “The van missed us by a sec.’’
Other witnesses described chaos as people dropped their belongings and fled as the van entered the mall and accelerated, hitting people indiscriminately, among them children, women, and the elderly. Among the seriously injured was a 6-year-old girl hospitalized with a cerebral hemorrhage, an official at Vall Hebron university hospital said.
People streamed onto side streets, many of them weeping. “It was horrific,’’ said Sergi Alcazar, a 25-year-old photographer who arrived 10 minutes after the attack to find victims lying amid broken umbrellas, chairs, and cafe tables.
Until Thursday, Spain had been spared from the recent wave of terrorist attacks in Europe — many involving vehicles plowing into crowds — claimed by extremists in France, Germany, Britain, and elsewhere.
Trapero said police were investigating a possible connection between the van attack and a gas explosion the previous night in Alcanar, a town south of the city, which killed one person and injured several others.
One person, a Spaniard from the Spanish territory of Melilla in Morocco, had been taken into custody in Alcanar, he said. A second man, identified as Driss Oukabar, a Morrocan citizen, was arrested in the northern Catalan town of Ripoll when he walked into a police station and reported his documents had been stolen.
Trapero said neither man appeared to be the driver of the van, which came to a stop near the city’s opera house. The driver escaped on foot, he said.
A national police official, speaking on the condition of anonymity to discuss on ongoing investigation, said at least three vans had been rented under Oukabar’s name. As night fell, the Barcelona police were frantically searching for the two other vans, combing the streets and underground parking garages, the official said.
US counterterrorism officials in Washington said they were in contact with the Spanish authorities to offer any help, but underscored that the investigation had just started.
Trump said on Twitter that the United States would “do whatever is necessary to help, telling Spaniards to “Be tough & strong, we love you!’’
Pro-Islamic State accounts on the Telegram messaging service shared news of the attack. One channel, called “Expansion of the Caliphate,’’ posted video of the scene of the violence alongside a message in Arabic. “Terror is filling the hearts of the Crusader in the Land of Andalusia,’’ it said.
Although France and Britain have repeatedly been named in Islamic State propaganda urging followers to plan and stage attacks, Spain has been less in the cross hairs.
The country has, however, been a transit point for recruits of the militant group..
The attack Thursday appeared to follow the playbook of recent assaults in which attackers drove vehicles into crowded stretches of large European cities.
“While it’s not clear whether the attackers corresponded with ISIS prior to the operation, it’s clear that the methods used in the attack is something ISIS encouraged and incited over and again,’’ said Laith Alkhouri, a director in New York of the business-risk intelligence company Flashpoint, which tracks militant threats.
In the worst of such attacks, a man drove a rental truck into a crowd celebrating Bastille Day in the French resort city of Nice last year, killing 86 people.
In March 2004, a series of bombs ripped through commuter trains in Madrid, killing 191 people.
The bombings were carried out by a group of North African Islamists.



