A Turkish court has sentenced a man to life in prison for the New Year's Eve attack on a nightclub in Istanbul.
Albulkadir Masharipov, from Uzbekistan, was charged with multiple offences including membership of a terror group and 39 counts of murder.
The court in Istanbul sentenced him to 40 separate life sentences without parole and a further 1,368 years in prison for attempted murders
Thirty-nine people were killed when a gunman forced his way inside the Reina nightclub in the early hours of January 1, 2017, and opened fire on crowds inside.
Seventy-nine other people were wounded, and several revellers jumped into the waters of the Bosporus to escape the massacre. 27 foreigners died in the attack
The suspect escaped the scene and the so-called Islamic State group later claimed responsibility for the attack.
Police arrested Masharipov in a police raid 15 days after the attack.