"There is no doubt he is our friend," Turkey's prime minister, Recep Tayyip Erdogan, says of Iran's President Mahmoud Ahmadinejad, even as he accuses Foreign Minister Avigdor Lieberman of threatening to use nuclear weapons against Gaza. These outrageous assertions point to the profound change of orientation by Turkey's government - for six decades the West's closest Muslim ally - since Erdogan's AK party came to power in 2002. Three events this past month reveal the extent of that change. The first came on October 11 with the news that the Turkish military - a long-time bastion of secularism and advocate of cooperation with Israel - abruptly asked Israeli forces not to participate in the annual "Anatolian Eagle" air force exercise. Erdogan cited "diplomatic sensitivities" for the cancelation, and Foreign Minister Ahmet Davutoglu spoke of "sensitivity on Gaza, east Jerusalem and the al-Aksa Mosque." The Turks specifically rejected Israeli planes that may have attacked Hamas during last winter's Gaza Strip operation. While Damascus applauded the disinvitation, it prompted the US and Italian governments to withdraw their forces from Anatolian Eagle, which in turn meant canceling the international exercise. As for the Israelis, this "sudden and unexpected" shift shook to the core their military alignment with Turkey, in place since 1996. Former air force chief Eitan Ben-Eliahu, for example, called the cancelation "a seriously worrying development." Jerusalem immediately responded by reviewing Israel's practice of supplying Turkey with advanced weapons, such as the recent $140 million sale to the Turkish air force of targeting pods. The idea also arose to stop helping the Turks defeat the Armenian genocide resolutions that regularly appear before the US Congress. BARRY RUBIN of the Interdisciplinary Center in Herzliya not only argues that "the Israel-Turkey alliance is over," but concludes that Turkey's armed forces no longer guard the secular republic and can no longer intervene if the government becomes too Islamist. The second event took place two days later, on October 13, when Syria's Foreign Minister Walid Muallem announced that Turkish and Syrian forces had just "carried out maneuvers near Ankara." Muallem rightly called this an important development "because it refutes reports of poor relations between the military and political institutions in Turkey over strategic relations with Syria." Translation: Turkey's armed forces lost out to its politicians. Thirdly, 10 Turkish ministers, led by Davutoglu, joined their Syrian counterparts on October 13 for talks under the auspices of the just-established "Turkey-Syria High Level Strategic Cooperation Council." The ministers announced having signed almost 40 agreements to be implemented within 10 days; that "a more comprehensive, a bigger" joint land military exercise would be held than the first one in April; and that the two countries' leaders would sign a strategic agreement in November. The council's concluding joint statement announced the formation of "a long-term strategic partnership" between the two sides "to bolster and expand their cooperation in a wide spectrum of issues of mutual benefit and interest, and strengthen the cultural bonds and solidarity among their peoples." The council's spirit, Davutoglu explained, "is common destiny, history and future; we will build the future together," while Muallem called the get-together a "festival to celebrate" the two peoples. Bilateral relations have indeed been dramatically reversed from a decade earlier, when Ankara came perilously close to war with Syria. But improved ties with Damascus are only one part of a much larger effort by Ankara to enhance relations with regional and Muslim states - a strategy enunciated by Davutoglu in his influential 2000 book, Strategic Depth: Turkey's International Position. In brief, Davutoglu envisions reduced conflict with neighbors and Turkey emerging as a regional power, a sort of modernized Ottoman Empire. Implicit in this strategy is a distancing of Turkey from the West in general and from Israel in particular. Although not presented in Islamist terms, "strategic depth" closely fits the AK party's Islamist world view. As Barry Rubin notes, "The Turkish government is closer politically to Iran and Syria than to the United States and Israel." Caroline Glick, a Jerusalem Post columnist, goes further: Ankara has already "left the Western alliance and became a full member of the Iranian axis." But officials in the West seem nearly oblivious to this momentous change in Turkey's allegiance, and its implications. The cost of this error will soon become evident. The writer (www.DanielPipes.org) is director of the Middle East Forum and Taube distinguished visiting fellow at the Hoover Institution of Stanford University.