A court in the historic Turkish city of Istanbul has sentenced the attacker who shot dead 39 people in a nightclub in 2017 to 40 years in prison and more than 1,300 years in prison for other crimes.
According to the Turkish news agency Anadolu, Istanbul's Heavy Panel Court No. 27 convicted Uzbek citizen Abdulkadir Masharipov of violating the constitution and deliberately killing 39 people, including a police officer.
The convict was also sentenced to 1,368 years in prison for attempting to kill 79 people and violating the firearms law, according to the report.
The court also convicted another accused, Ilyas Masharipov, of plotting the attack and aiding Abdulkadir Masharipov.
The other accused was sentenced to 1,432 years in prison for other crimes, including murder and aiding and abetting murder.
A gunman opened fire on a New Year's Eve party at the Reina nightclub in the Turkish district of Ortakoy on January 1, 2017, killing 39 people, including a police officer.
The dead included 27 foreigners and 79 were injured.
Police arrested Abdulkadir Masharipov, 34, in Istanbul 17 days after the incident.
After the incident, Turkish Interior Minister Saleh Soylu said that after the attack, police launched an operation in the area and began searching for the attacker, and that five Turkish citizens were among those killed.
The governor of Istanbul, K, described the incident as "terrorist" and said that a police officer was among those killed.
Turkish officials say there were about 700 people in the nightclub celebrating the New Year before the attack.