Tomas Cypas (34) is alleged to have assaulted Juris Kokenbergs (49) and put him lying on a couch, where he was found dead the next morning.
A post-mortem examination revealed Mr Kokenbergs died as a result of blunt-force trauma to the head, a court heard.
A detective alleged there was evidence of “punching, kicking or stamping” to Mr Kokenbergs’s head.
Judge Mark O’Connell refused bail and remanded Mr Cypas in custody to appear before Cloverhill District Court next Tuesday.
The accused, of Foxborough Road in Lucan, is charged with intentionally or recklessly causing serious harm to Mr Kokenbergs at Old Bridge Park in Lucan on a date between last Saturday and Monday – October 26 and October 28.
Detective Garda Neil McGrath told Blanchardstown District Court gardaí were objecting to bail, citing the seriousness of the charge and fears Mr Cypas is a flight risk.
Det Gda McGrath alleged an altercation took place between Mr Cypas and the injured party during the hours of Saturday and Sunday.
He said there was evidence of punching and kicking or stamping to the victim’s head, that he lost consciousness and suffered significant internal and external injuries.
Det Gda McGrath alleged that Mr Kokenbergs was put lying on a couch and on Sunday morning he was discovered lying dead on the floor.
He said gardaí interviewed Mr Cypas, who made admissions to striking Mr Kokenbergs.
Defence solicitor Roy O’Neill said his client enjoyed the presumption of innocence and co-operated with gardaí.
Mr O’Neill put it to Det Gda McGrath that Mr Cypas contacted the emergency services and stayed at the house, which Det Gda McGrath accepted.
Mr O’Neill also said Mr Cypas had lived in Ireland for 20 years, and had family living here.
The solicitor stated that his client and Mr Kokenbergs were friends. He added that Mr Cypas told gardai, during interview, he had been provoked and was acting in self-defence.
Mr O’Neill also said Mr Cypas was willing to abide by any bail conditions, and though not people of means, his family was willing to provide a surety of €3,000.
Judge O’Connell said this was an extremely serious allegation and he refused bail.