According to the prosecutor’s office, it's because they're accused of having links to the network of US-based cleric Fethullah Gulen.
Ankara says it was him who orchestrated a 2016 attempted coup.
Those who are facing jailtime include three colonels, eight majors and 10 lieutenants.

Iran calls US peace proposals 'unrealistic', Trump issues new warning to Tehran
Israel passes death penalty law for Palestinians convicted of lethal attacks
France seeks emergency UN meeting after Lebanon peacekeeper attacks
At least 70 killed in Haiti massacre, rights group says
Spain closes airspace to US planes involved in Iran war, defence minister says
Trump again warns Iran to open Strait of Hormuz
Israeli fire kills six in Gaza and the West Bank, medics say
Spain closes airspace to US planes involved in Iran war, El Pais says
