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.

US and Iran signal a peace deal is close
Qatar rejects media report on energy production decisions
Trump says Iran war deal close as Strait of Hormuz tensions linger
Victims' families mark Air India crash anniversary with prayers and tributes
Ebola outbreak spreads to crowded displacement camp in Congo
Fire breaks out at New Zealand's Wellington airport, disrupting flights
Ukraine and Russia trade overnight drone strikes, officials say
UN says Taliban arrest 30 women for violating hijab rules in Afghanistan
