In 1939, Turkey signed a Mutual Aid Pact with the United Kingdom and France but backed out at the last minute to avoid war with the USSR. They later signed a friendship treaty with Nazi Germany in 1941.