# List of prime ministers of the United Kingdom

The prime minister of the United Kingdom is the head of government of the United Kingdom. The prime minister advises the sovereign on the exercise of much of the royal prerogative, chairs the Cabinet and selects its ministers. As modern prime ministers hold office by virtue of their ability to command the confidence of the House of Commons, they are members of Parliament.
Listed here, are the Wikiquote articles for prime ministers of the United Kingdom along with their terms in office, in chronological order.
* Robert Walpole, 3 April 1721 – 11 February 1742
* Spencer Compton, 1st Earl of Wilmington, 16 February 1742 – 2 July 1743
* Henry Pelham, 27 August 1743 – 6 March 1754
* Thomas Pelham-Holles, 1st Duke of Newcastle, 16 March 1754 – 11 November 1756
* William Cavendish, 4th Duke of Devonshire, 16 November 1756 – 29 June 1757
* Thomas Pelham-Holles, 1st Duke of Newcastle, 29 June 1757 – 26 May 1762
* John Stuart, 3rd Earl of Bute, 26 May 1762 – 8 April 1763
* George Grenville, 16 April 1763 – 10 July 1765
* Charles Watson-Wentworth, 2nd Marquess of Rockingham, 13 July 1765 – 30 July 1766
* William Pitt, 1st Earl of Chatham, 30 July 1766 – 14 October 1768
* Augustus FitzRoy, 3rd Duke of Grafton, 14 October 1768 – 28 January 1770
* Frederick North, Lord North, 28 January 1770 – 27 March 1782
* Charles Watson-Wentworth, 2nd Marquess of Rockingham, 27 March 1782 – 1 July 1782
* William Petty, 2nd Earl of Shelburne, 4 July 1782 – 26 March 1783
* William Cavendish-Bentinck, 3rd Duke of Portland, 2 April 1783 – 18 December 1783
* William Pitt the Younger, 19 December 1783 – 14 March 1801
* Henry Addington, 17 March 1801 – 10 May 1804
* William Pitt the Younger, 10 May 1804 – 23 January 1806
* William Grenville, 1st Baron Grenville, 11 February 1806 – 25 March 1807
* William Cavendish-Bentinck, 3rd Duke of Portland, 31 March 1807 – 4 October 1809
* Spencer Perceval, 4 October 1809 – 11 May 1812
* Robert Jenkinson, 2nd Earl of Liverpool, 8 June 1812 – 9 April 1827
* George Canning, 12 April 1827 – 8 August 1827
* Frederick John Robinson, 1st Viscount Goderich, 31 August 1827 – 8 January 1828
* Arthur Wellesley, 1st Duke of Wellington, 22 January 1828 – 16 November 1830
* Charles Grey, 2nd Earl Grey, 22 November 1830 – 9 July 1834
* William Lamb, 2nd Viscount Melbourne, 16 July 1834 – 14 November 1834
* Arthur Wellesley, 1st Duke of Wellington, 17 November 1834 – 9 December 1834
* Robert Peel, 10 December 1834 – 8 April 1835
* William Lamb, 2nd Viscount Melbourne, 18 April 1835 – 30 August 1841
* Robert Peel, 30 August 1841 – 29 June 1846
* Lord John Russell, 30 June 1846 – 21 February 1852
* Edward Smith-Stanley, 14th Earl of Derby, 23 February 1852 – 17 December 1852
* George Hamilton-Gordon, 4th Earl of Aberdeen, 19 December 1852 – 30 January 1855
* Henry John Temple, 3rd Viscount Palmerston, 6 February 1855 – 19 February 1858
* Edward Smith-Stanley, 14th Earl of Derby, 20 February 1858 – 11 June 1859
* Henry John Temple, 3rd Viscount Palmerston, 12 June 1859 – 18 October 1865
* Lord John Russell, 29 October 1865 – 26 June 1866
* Edward Smith-Stanley, 14th Earl of Derby, 28 June 1866 – 25 February 1868
* Benjamin Disraeli, 27 February 1868 – 1 December 1868
* William Ewart Gladstone, 3 December 1868 – 17 February 1874
* Benjamin Disraeli, 20 February 1874 – 21 April 1880
* William Ewart Gladstone, 23 April 1880 – 9 June 1885
* Robert Gascoyne-Cecil, 3rd Marquess of Salisbury, 23 June 1885 – 28 January 1886
* William Ewart Gladstone, 1 February 1886 – 20 July 1886
* Robert Gascoyne-Cecil, 3rd Marquess of Salisbury, 25 July 1886 – 11 August 1892
* William Ewart Gladstone, 15 August 1892 – 2 March 1894
* Archibald Primrose, 5th Earl of Rosebery, 5 March 1894 – 22 June 1895
* Robert Gascoyne-Cecil, 3rd Marquess of Salisbury, 25 June 1895 – 11 July 1902
* Arthur Balfour, 12 July 1902 – 4 December 1905
* Henry Campbell-Bannerman, 5 December 1905 – 3 April 1908
* H. H. Asquith, 8 April 1908 – 5 December 1916
* David Lloyd George, 6 December 1916 – 19 October 1922
* Bonar Law, 23 October 1922 – 20 May 1923
* Stanley Baldwin, 22 May 1923 – 22 January 1924
* Ramsay MacDonald, 22 January 1924 – 4 November 1924
* Stanley Baldwin, 4 November 1924 – 4 June 1929
* Ramsay MacDonald, 5 June 1929 – 7 June 1935
* Stanley Baldwin, 7 June 1935 – 28 May 1937
* Neville Chamberlain, 28 May 1937 – 10 May 1940
* Winston Churchill, 10 May 1940 – 26 July 1945
* Clement Attlee 26 July 1945 – 26 October 1951
* Winston Churchill, 26 October 1951 – 5 April 1955
* Anthony Eden, 6 April 1955 – 9 January 1957
* Harold Macmillan, 10 January 1957 – 18 October 1963
* Alec Douglas-Home, 18 October 1963 – 16 October 1964
* Harold Wilson, 16 October 1964 – 19 June 1970
* Edward Heath, 19 June 1970 – 4 March 1974
* Harold Wilson, 4 March 1974 – 5 April 1976
* James Callaghan, 5 April 1976 – 4 May 1979
* Margaret Thatcher, 4 May 1979 – 28 November 1990
* John Major, 28 November 1990 – 2 May 1997
* Tony Blair, 2 May 1997 – 27 June 2007
* Gordon Brown, 27 June 2007 – 11 May 2010
* David Cameron, 11 May 2010 – 13 July 2016
* Theresa May, 13 July 2016 – 24 July 2019
* Boris Johnson, 24 July 2019 – 6 September 2022
* Liz Truss, 6 September 2022 – 25 October 2022
* Rishi Sunak, 25 October 2022 – 5 July 2024
* Keir Starmer, 5 July 2024 – present