Hundreds of protesters battled police in the heart of Barcelona amid anger over the jailing of Catalan separatist leaders.
Masked protestors were seen blocking areas, damaging police vehicles, setting fire to large garbage bins, ransacking banks and attacking riot police officers with stones, cans and bottles.
Police responded with repeated volleys of foam bullets, smoke grenades, tear gas and water cannons.
The violence followed a largely peaceful demonstration that drew more than half a million people onto the streets of the Catalan capital.
Catalan interior affairs chief Miquel Buch distanced themselves from the riots, claiming "this kind of violence is unprecedented in Catalonia ... these people are not separatists".
Some 128 people have been arrested in the region over the past five days, with Spain's acting interior minister, Fernando Grande-Marlaska, warning that rioters faced up to six years in prison.
Major internet platforms, including X and ChatGPT, were inaccessible for thousands of users globally on Tuesday as web-infrastructure firm Cloudflare was hit by an outage, disrupting internet services.
Israeli Prime Minister Benjamin Netanyahu on Tuesday called for Hamas to be expelled from the region, a day after the UN Security Council endorsed President Donald Trump's plan to end the war that offers the group amnesty.
The UN Security Council has voted to adopt a US-drafted resolution endorsing US President Donald Trump's plan to end the war in Gaza and authorising an international stabilisation force for the enclave.
Prime Minister Mohammed Shia al-Sudani's political bloc has won the most seats in Iraq's election, final election results showed on Monday, but a new government could still be months away due to wrangling to build a majority.