In April 1941, the country was occupied and partitioned by the Axis powers. A royal government-in-exile, recognized by the United Kingdom and, later, by all the Allies, was established in London. In 1944, after pressure from the British Prime Minister Winston Churchill, the King recognized the government of Democratic Federal Yugoslavia as the legitimate government. This was established on 2 November following the signing of the Treaty of Vis by Ivan Šubašić (on behalf of the Kingdom) and Josip Broz Tito (on behalf of the Yugoslav Partisans).