Judges Metin Ozcelik and Mustafa Baser who, in Apr 2015, unsuccessfully ruled to release Hidayet Karaca, the head of the now-closed opposition broadcaster Samanyolu TV, were sentenced to 10 years in jail each on accusation that they had abused their judicial power, on Tuesday.
They are also accused of membership to the Gulen movement, which the government put the blame on for the July 15 coup attempt.
The two judges, under arrest since May 2015, were earlier suspended from their posts by the Supreme Board of Judges and Prosecutors (HSYK).
Samanyolu TV was first seized by the government and then shut down by decree in August 2016 in the wake of a failed coup attempt.
Karaca had been detained in December 2014 as a result of twin police raids targeting both the Zaman daily and the Samanyolu media group.