Unlike Iran's rivalries with Saudi Arabia and Israel, Iran and Turkey have been mainly stable neighbors. Until 1979, both Iran and Turkey were part of the Baghdad Pact, a US-sponsored anti-communist alliance to counter the Soviet Union during the Cold War.