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.

Afghan Taliban says 400 killed in Pakistan air strike on Kabul hospital
Bomb attacks kill at least 23 in Nigeria's Maiduguri
Five countries warn against major Israeli ground offensive in Lebanon
Fire breaks out at Qatar's Industrial Area after missile interception
Kuwait arrests Hezbollah-linked cell in security crackdown
