On 14 June 1940, Spanish forces in Morocco occupied Tangier (a city under the rule of the League of Nations) and did not leave it until the war's end in 1945.