According to the Global Power index, Turkey ranks the 10th among the most capable global armed forces.
The bulk of Turkish forces are concentrated in the region, but Turkish troops are also deployed abroad, including in Cyprus, Afghanistan and Libya.
According to military experts, the Turkish armed forces are one the best-trained in the world. Turkish troops are trained in accordance with NATO norms.
In the 2000s, Erdogan announced the reforming of relations between the military and civic institutions.
The recent attempted coup reflects the polarization within Turkish society, said Boris Dolgov, senior research fellow at the Institute for Eastern Studies, the Russian Academy of Sciences.
"The Turkish society is split. Part of it supports President Erdogan who is carrying out a policy of Islamization. This is a neo-ottoman policy, a course of expansion to the regions that were part of the Ottoman Empire. For example, in Syria Erdogan supports Sunni groups fighting against Bashar Assad," Dolgov told Gazeta.ru.
However, many in Turkey oppose this course. Turkish opposition has repeatedly said that the government is mounting pressure on opposition activists and journalists. Many experts have said that Turkey is drifting from a republic towards an authoritarian presidency.
As for the Turkish armed forces, this institution was established by Mustafa Kemal Ataturk, the founder of the Republic of Turkey.
"Ataturk’s idea was secular development for Turkey. The Turkish military still supports and promotes this tradition," the expert noted.
"I think that the recent attempted coup is part of this standoff within the Turkish society. Many in Turkey are not happy with Erdogan’s policy. However, the coup was quelled, and so far Erdogan supporters win," he added.
They study and train both in Turkey and abroad, including in the United States and Europe. Turkish officers are qualified military specialists and many of them support Ataturk’s secular ideas.
In the modern Turkey, the army also plays another important role – to counterbalance Erdogan’s risky foreign policy ambitions.
"The Turkish military is one the most respected and disciplined social institutions. This is a tradition rooted in Turkish history," Sinan Ulgen, a scholar at Carnegie Europe, was quoted as saying by BBC.
According to Ulgen, throughout the 20th century, Turkish officers considered themselves protectors of the basic principles of the Turkish state. As a result, they have staged several coups when they saw a threat to the constitutional order.
After 2012, Erdogan carried out purging of the military ranks. His supporters were appointed for many command posts.
"But the recent putsch demonstrated that military officers are still trying to change the political course. They said they protested corruption and fought for democracy. These are usual mottos, but they prove that the Turkish military is against Islamization," Dolgov concluded.