Robert Walpole is the only person to have served as prime minister for more than two decades. As of October 2022[update], Liz Truss is expected to be the shortest-serving prime minister when she announced her plans to resign 45 days into her tenure amidst the October 2022 United Kingdom government crisis.[2][3] The previous shortest time served was George Canning, who served for less than four months before his death.[4]