Updated 11.30am

The streets of Dublin were ablaze on Thursday night as rioters attacked police officers, torched vehicles and looted shops after three young children were injured in a knife attack outside a school.

Police in riot gear stood guard on the streets in the Irish capital as crowds taunted them with chants and set off fireworks. 

Near O'Connell Bridge, over the River Liffey, flames rose from a torched car and bus, while crowds broke into stores and looted one of the city's main shopping streets.

Police arrested 34 people as police chief Drew Harris blamed a "complete lunatic faction driven by far-right ideology" for the violence. 

By late on Thursday evening, Police Chief Superintendent Patrick McMenamin said calm had been restored and no serious injuries were reported.

"It was gratuitous thuggery," he said.

The unrest -- the worst in Dublin in years -- came after a five-year-old girl sustained serious injuries in a suspected stabbing in Parnell Square East, north central Dublin.

Two other children and two adults -- a woman and the suspected perpetrator of the attack -- were taken to hospital after the incident around 1:30 pm (1330 GMT).

Rumours on social media about the nationality of the assailant, who police only described as a man in his fifties, helped fuel unrest following the attack.

Some protesters carried signs reading "Irish Lives Matter" and waved Irish flags through a neighbourhood home to a large immigrant community.

One protester told AFP that "Irish people are being attacked by these scum."

Ireland has been facing a chronic housing crisis, with the government estimating that there is a deficit of hundreds of thousands of homes for the general population.

Video: AFP

Widespread dissatisfaction has fed into a backlash against asylum seekers and refugees, and far-right figures have promoted anti-immigration sentiment at rallies and on social media with claims that "Ireland is full".

Varadkar vows new laws

Prime Minister Leo Varadkar said the rioters were "filled with hate". 

"Those involved brought shame on Dublin, brought shame on Ireland and brought shame on their families and themselves," a visibly angry Varadkar told reporters, describing the rioters as "criminals".

"They did not do what they did because they wanted to protect Irish people. They did not do it out of any sense of patriotism, however warped.

"They did so because they're filled with hate. They love violence. They love chaos and they love causing pain to others," he added.

"As a country, we need to reclaim Ireland. We need to take it away from the cowards who hide behind masks and tried to terrify us with their violence," said Varadkar.

He promised that his government would use the "full resources of the law, the full machinery of the state to punish those involved in yesterday's grotesque events".

Varadkar added that he would pass new laws in the coming weeks to enable police "to make better use" of CCTV evidence they collected during the unrest.

Justice Minister Helen McEntee said the scenes in the city centre, including attacks on police, "cannot and will not be tolerated" and promised to take action.

"A thuggish and manipulative element must not be allowed to use an appalling tragedy to wreak havoc," she said, calling for calm.

Thursday's incident, which police said was not thought to be terror-related, involved a man armed with a knife stabbing victims outside the school, according to media and eyewitnesses.

Superintendent Liam Geraghty later told media that "a young girl aged five years has sustained serious injuries" and was receiving emergency medical treatment.

Irish Garda riot police form a cordon at the junction of Parnell Street and O'Connell Street. Photo: AFPIrish Garda riot police form a cordon at the junction of Parnell Street and O'Connell Street. Photo: AFP

A five-year-old boy and a six-year-old girl sustained less serious wounds and the boy had since been discharged, he added. 

The woman was being treated for serious injuries in hospital, while the man, said to be in his 50s, was a "person of interest" for police, revealed Geraghty.

Siobhan Kearney said the scene was "absolutely bedlam" as she initially watched events unfold from the other side of the street.

"Without thinking, I just took across the road to help out," she told Irish national broadcaster RTE. 

"We got another young man, disarmed (the attacker) with the knife. Another man took the knife and put it away for the (police) to find it."

Kearney added a group of people restrained the suspect on the ground as some of those injured were taken back inside the school.

Shock across political spectrum

EU chief Ursula von der Leyen said she was "shocked" by the "brutal attack".

Local lawmaker Aodhan O Riordain of the Irish Labour Party said the incident was "disturbing".

"Hope injuries are not serious but it will (be) extremely traumatising regardless for all involved," he wrote on X, formerly Twitter.

Mary Lou McDonald, leader of the Sinn Fein opposition party, said she was "horrified" by what had happened.

"I want to send my solidarity to the families of those attacked. As a parent, I can only imagine what they are going through right now," she said.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.