The Crown says a man killed a security guard on his first day on the job by hitting him around the head with a hunk of wood while trying to hide from another man he had earlier assaulted.
Charanpreet Dhaliwal died at a construction site in Auckland in November 2011.
Crown Prosecutor Yelena Yelavich told the High Court in Auckland the man charged with the murder, who has name suppression, was out drinking with three friends when they were denied entry to a bar in West Auckland.
She says the accused punched the doorman and the group fled and hid at a construction site in Henderson.
Mr Dhaliwal was manning the site and when he approached the four men, Ms Yelavich says he was hit multiple times over the head with a piece of timber.
Colleagues found him lying dead in a pool of blood a short time later.
The accused man's lawyers say one of the other three men caused the fatal blows, with another object.
They say their client is not part of the gang the other three belong to and the others are not telling the truth because of their allegiances.
A jury of nine women and three men was selected on Monday morning for the trial, which is expected to take three weeks.
The company Mr Dhaliwal was working for, CNE Security, also face charges relating to his death.
That matter is still before the courts.