Two men have appeared in court charged in the connection with an incident in Ballyfermot in the early hours of yesterday morning in which two gardaí were injured.

Stephen Byrne, 35, from Ballyfermot Avenue in Dublin, and 54-year-old Anthony Grogan, from Cherry Orchard Park, Ballyfermot in Dublin, face three charges each under the Public Order Act.

The charges include two counts of assaulting a garda and one charge of violent disorder.

Dublin District Court heard both men were charged last night at Ballyfermot Garda Station and made no reply after caution.

Gardaí told court that both men were identified and arrested at the scene and said the incident was captured from a number of angles on CCTV.

Gardaí objected to bail in both cases because of the seriousness of the charges, which on conviction can result in sentences of up to five and ten years in prison.

Judge Paula Murphy said the matters before the court were of a very serious nature and anyone convicted of the alleged offences would be facing a significant custodial sentence.

She said it was a borderline case for bail. However, she said the men were entitled to the presumption of innocence and were entitled to bail.

Judge Murphy remanded Mr Grogan in custody with consent to bail on his own bond of €10,000, half of which must be lodged in court and an independent surety of €5,000.

If he takes up bail he must also sign on daily at Ballyfermot Garda Station and observe a curfew between 11pm and 6am. He must also surrender his passport and be contactable 24 hours a day by mobile phone.

His defence solicitor told the court he was married with five children and had strong ties to the area and was not a flight risk. He also applied for legal aid.

He said his client was of limited means and would not realistically be able to raise the amount of bail money required. He was remanded in custody with consent to bail to appear again at Cloverhill District Court on 29 November.

Mr Byrne was remanded in custody with consent to bail on the same conditions on his own bond of €6,000, half of which has to be lodged in court, with a independent surety of €10,000, half of which has to be lodged in court, and the person approved by a district court judge.

His case returns to Cloverhill District Court tomorrow. His defence solicitor said he had three children and while he was in full-time employment, he was of limited means and may not be able to raise the money required for bail. She also applied for legal aid.

During the incident the two gardaí, a man and a woman, were allegedly assaulted while responding to a public order incident outside a pub on the Ballyfermot Road.

After engaging with a number of people on the street, a garda was allegedly attacked and knocked to the ground.

His colleague, who tried to intervene, was also allegedly attacked and dragged away by her hair.

The attack was filmed and posted on social media.

A third man is due in court tomorrow morning to be charged in connection with the investigation.

A woman in her 50s, who was also arrested, was released and is due in court at a later date.