A 37-year-old man has appeared at a special sitting of Dublin District Court charged with assault causing harm to another man in Swords, Co Dublin on Thursday afternoon.
45-year-old Taiwo Jamani remains in a critical condition in hospital after he was beaten on the head with a baseball bat.
Jooda Akanbi, aged 37, from Applewood in Swords was remanded in custody to Cloverhill Prison until 15 October.
There was no application for bail.
A second man, who is also aged in his 30s, was arrested at the scene of the assault on Mr Jamani and was detained at Coolock Garda Station.
Gardaí have appealed to anyone who may have information on the incident to contact them. In particular, they are looking for people who may have footage of the incident.