Boris Johnson's term as the prime minister of the United Kingdom began on 24 July 2019 when he accepted an invitation of Queen Elizabeth II to form a government, following the resignation of his predecessor Theresa May after Parliament's repeated rejections of her Brexit withdrawal agreement. While serving as prime minister, Johnson also served as the first lord of the treasury, minister for the civil service, minister for the union, and leader of the Conservative Party. His premiership ended with his resignation on 6 September 2022. Johnson's premiership was dominated by Brexit, the COVID-19 pandemic, the 2022 Russian invasion of Ukraine, and the cost of living crisis. His premiership was also characterised by several political controversies and scandals, most notably the Partygate scanda