The jury in the trial of a 29-year-old man accused of the murder of Ian Tobin in Blanchardstown in Dublin almost six years ago has retired to consider its verdict.
The 25-year-old was shot through a door at a house in Fortlawn Park, but the court heard his brother was the intended target.
The State claims that Bryan Ryan, originally from Blanchardstown but now living at Ard Caher, Louisburgh in Co Mayo, drove the gunman to the killing.
Mr Ryan has pleaded not guilty to the murder.
Mr Tobin was killed at 5.15am on 27 May 2007, but it is believed his brother Blake was the intended target.
The prosecution says Mr Ryan drove the gunman to the killing on a motorbike and the case is one of joint enterprise.
He has pleaded not guilty to murder.
The court heard Mr Ryan told another man that the victim's brother Blake Tobin was going to be killed by the accused's girlfriend's father Michael Murray, who has since been shot dead.
A protected witness, Kevin Whelan, gave evidence that there was a fistfight between Mr Ryan and Blake Tobin, and that Mr Murray tried to stab Blake Tobin, who chased him away with a golf club.
Mr Whelan told the court he received a call from Mr Ryan saying Blake Tobin was "getting it".
The jury also heard that in an interview with gardaí almost two months later, on 21 June 2007, Mr Ryan admitted his involvement but said he did not know there was any gun and believed the person who carried out the shooting was only going to "frighten" the deceased.
Mr Ryan took the stand during the trial and said he only made that admission because he had been "bullied into making a false confession" by detectives.
The jury has now retired to consider its verdict.