The Baghdad Pact was a NATO-type alliance between the UK, Turkey, Iraq, Iran, and Pakistan until 1979.