Rishi Sunak's term as the prime minister of the United Kingdom began on 25 October 2022 when he accepted an invitation of King Charles III to form a government, following the resignation of his predecessor Liz Truss amid a government crisis. Sunak took office amid the Russian invasion of Ukraine and the cost of living crisis, both of which began during his tenure as chancellor under Boris Johnson.