After the German conquest of Poland, a Polish
government-in-exile was formed under the protection of
France and
Britain. The President of the Republic and the government-in-exile were recognised by the United Kingdom and, later, by the
United States until 6 July 1945, when the Western Allies accepted the Communist-led government backed by
Joseph Stalin. Despite having lost recognition by other governments, the government-in-exile continued in
London until the election of
Lech Wałęsa as President of the Republic of Poland in December 1990, upon which it handed over its formal powers and the insignia of the Polish Second Republic to President-elect Wałęsa in a ceremony at the
Warsaw Royal Castle on 22 December 1990. The sole internationally recognised president of the exiled government was
Władysław Raczkiewicz, who took office after Ignacy Mościcki's resignation in September 1939. ==Polish People's Republic (1944–1989)==