After the outbreak of World War II in 1939, Turkish President İsmet İnönü pursued a policy of neutrality, trying to avoid involvement in the war, and asked for military equipment deliveries from both the Axis powers and the Allies. For its part, Nazi Germany tried to draw Turkey away from Britain using diplomatic efforts. As Germany was preparing to invade Yugoslavia and Greece in April 1941, German troops arrived at the Bulgarian border and demanded Bulgarian permission to pass through its territory. On 1 March 1941, Bulgaria, wishing to acquire the areas in which Bulgarian-speaking communities lived in Greece and Yugoslavia, signed the Tripartite Pact and so formally joined the Axis powers. On 4 March 1941, Franz von Papen forwarded a letter from Adolf Hitler to İnönü in which Hitler wrote that he had not started the war and that he was not intending to attack Turkey. Further, Hitler emphasised that he had ordered his troops in Bulgaria to stay far from the Turkish border to avoid making a false impression of their presence. Hitler proposed a non-aggression pact with Turkey. On 6 April, Axis troops attacked Yugoslavia and Greece through Bulgaria in an effort to secure its southern flank. The invasion of Yugoslavia ended on 17 April and the invasion of Greece on 1 June. Bulgaria annexed the Greek and Yugoslav regions it claimed. Then, the annexation and occupation of the Balkan region by the Axis powers was complete. In the meantime, on 1 April 1941, Rashid Ali Al-Gaylani launched a military coup d'état that overthrew the pro-British regime in Iraq. The four generals leading the revolt were working closely with German intelligence and accepted military aid from Germany. Hitler asked Turkey for permission to pass through Turkish territory to give Iraq military assistance. In exchange, the Turkish government demanded border concessions from Iraq. As the negotiations were taking place, British forces attacked Iraq. Between 18 April and 3 June, Britain restored the regime of Emir Abdul-Illah, regent of four-year-old King Faisal II. The issue between Turkey and Germany was resolved with the development. The German–Turkish Treaty of Friendship was signed on 18 June 1941. On 22 June 1941, four days after the signing of the German–Turkish Treaty of Friendship, German troops invaded the Soviet Union in Operation Barbarossa, violating the German-Soviet Non-aggression Pact, though these events are probably unrelated. In August 1944, the Soviet Army entered Bulgaria and cut overland contact between Turkey and the Axis powers. Turkey severed its diplomatic and commercial relations with Germany, which predated the friendship treaty, and on 23 February 1945 declared war on Germany.
Clodius Agreement
In October 1941, Turkey and Germany signed the "Clodius Agreement", whereby Turkey agreed to export up 45,000 tons of chromite ore to Germany in 1941-1942, and 90,000 tons of the mineral in each of 1943 and 1944, contingent on Germany's supplies of military equipment to Turkey. The Germans were to provide as many as 117 railway locomotives and 1,250 freight rail cars to transport the ore. In an attempt to prevent the supply of this strategic mineral reaching Germany, the United States and the United Kingdom went on a buying spree to buying out Turkish chromite, even if they did not need so much of it. As part of the "package deal," the Anglo-Americans also bought Turkish dried fruit and tobacco.