Prime Minister of the United Kingdom century as a convention of the constitution, the position of Leader of the Opposition was given statutory recognition in 1937 by the Ministers of the Crown Act. British Prime Ministers have never been elected directly by the public. A Prime Minister need not be a party leader; David Lloyd George was not a party leader during his service as prime Minister during World War I, and neither was Ramsay MacDonald from 1931 to 1935. Prime Ministers have taken office because they were members of either the Commons or Lords, and either inherited a majority in the Commons or won more
Prime Minister of the United Kingdom origins of the position are found in constitutional changes that occurred during the Revolutionary Settlement (1688–1720) and the resulting shift of political power from the Sovereign to Parliament. Although the Sovereign was not stripped of the ancient prerogative powers and legally remained the head of government, politically it gradually became necessary for him or her to govern through a Prime Minister who could command a majority in Parliament. By the 1830s the Westminster system of government (or cabinet government) had emerged; the Prime Minister had become "primus inter pares" or the first among equals in the Cabinet and the head