Barcelona on Thursday suffered an attack with all the hallmarks of Islamist terror as a van drove into a tourist-area crowd, slaughtering 13 and injuring scores more.

The driver eluded immediate capture, but police nabbed two suspects.

In a nearby separate attack just hours later, a car plowed through a police roadblock, injuring two officers. Occupants traded gunfire with the cops; that driver was reportedly killed.

Also related, authorities now believe, is a Wednesday house explosion that left another person dead.

ISIS has claimed the attackers were “soldiers of the Islamic State.” That may be bluster, but at minimum this plot was too extensive to be merely the case of a self-radicalized, self-motivated lone wolf.

So if you thought regular terrorist assaults might be a thing of the past, think again.

The answer isn’t to accept such attacks — France and Britain have been especially hard hit over the past few years — as the new normal, shrug and go on with business as usual. They’ve got to end.

Recent successes in rolling back ISIS in Syria and Iraq will help some. The sooner the group is eradicated from the planet, the sooner it’ll be unable to inspire — or coordinate — plots throughout the world.

Efforts to prevent bent-on-evil infiltrators from abroad from crossing US borders are also as vital as ever. So, too, must the world’s counterterrorist and intel agencies remain vigilant.

As past terror threats have shown, the authorities need to get lucky every time to stop terrorists — while terrorists need to get lucky only once. Tragically, the bad guys seem to be “getting lucky” a lot lately.