The main suspect in the Christchurch attacks in March, has pleaded not guilty to all charges.
Brenton Tarrant is charged with the murder of 51 people, 40 counts of attempted murder and one terrorism charge in New Zealand's deadliest peace time mass shooting.
Appearing via video link from prison, the 29-year-old sat in silence as his lawyer read out his plea.
The 15 March attack saw a gunman opened fire on Muslims during Friday prayers.
This is the first time a terrorism charge has been brought in New Zealand.
A number of the survivors of the attack and relatives of the victims were in court for the hearing, the BBC's Sydney correspondent Hywel Griffith reported.
As lawyer Shane Tait read out his client's not guilty pleas, a number of them gasped and became tearful.
High Court Justice Cameron Mander said the trial had been set for 4 May next year, and that Tarrant would be remanded in custody until a case review hearing on 16 August.
Last week, a restriction on publishing photos of the suspect's face was lifted.
'New Zealand's darkest day'
The Australian citizen was arrested on 15 March for his alleged involvement in the shootings at the Al Noor mosque and the Linwood Islamic Centre, both located in Christchurch.
He allegedly drove first to the Al Noor mosque, parked nearby and began firing into the mosque as he walked in through the front entrance.
He allegedly fired on men, women and children inside for about five minutes. The attack was live-streamed from a head-mounted camera.
Victims of the Christchurch shootings
Fifty-one people lost their lives in the shootings at two mosques in the city. Here are some of their stories.
The suspect is then said to have driven about 5km (three miles) to the Linwood mosque where the second shooting occurred.
Addressing the nation in the wake of the attack, New Zealand Prime Minister Jacinda Ardern called it one of the country's "darkest days".
The gunman, armed with semi-automatic rifles including an AR-15, is believed to have modified his weapons with high-capacity magazines - the part of the gun which stores ammunition - so they could hold more bullets.
He is currently being kept in isolation at the Auckland Prison in Paremoremo, considered New Zealand's toughest prison.
Have your say
More World Headlines
- Dangerous heatwave starts hitting US and Canada
- I sat my exams 30 minutes after giving birth
- Police name suspect in Japan animation studio fire
- Eritrea Orthodox Church ex-leader expelled for 'heresy'
- Ramaphosa 'deliberately' misled parliament - Public Protector
- US shoots down Iranian drone
- S. Africa: Soldiers deployed to counter surge in violence
- Man finds own amputated leg on cigarette packets without consent
- Trump sparks condemnation after supporters chant 'send her back'
- US honours Nigerian imam who hid Christians from killers
- Trump renews attacks on congresswomen of colour: ‘Let them leave’ America
- Kenya deports 17 foreign directors of betting firms
- Former president of ECOWAS Commission De Souza passes away
- Mexican drug lord El Chapo gets life in prison
- Africans 'twice as likely to be refused a UK visa'