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.

Strong earthquake strikes central Peru
Overloaded boat capsizes in Nigeria, at least 40 bodies recovered
Bangladesh elects ruling party veteran Alamgir as president
Russian strikes kill 16 in Ukraine's Kyiv
Prince Harry and Meghan to move back to Britain