The office is not established by any statute or constitutional document but exists only by long-established convention, which stipulates that the monarch must appoint as Prime Minister the person most likely to command the confidence of the House of Commons; this individual is typically the leader of the political party or coalition of parties that holds the largest number of seats in that chamber. The position of Prime Minister was not created; it evolved slowly and erratically over three hundred years due to numerous acts of Parliament, political developments, and accidents of history. The office is therefore best understood from a historical perspective. The 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 of government in the United Kingdom. The political position of Prime Minister was enhanced by the development of modern political parties, the introduction of mass communication (inexpensive newspapers, radio, television and the internet), and photography. By the start of the 20th century the modern premiership had emerged; the office had become the pre-eminent position in the constitutional hierarchy vis-à-vis the Sovereign, Parliament and Cabinet.
Prior to 1902, the Prime Minister sometimes came from the House of Lords, provided that his government could form a majority in the Commons. However as the power of the aristocracy waned during the 19th century the convention developed that the Prime Minister should always sit in the lower house. As leader of the House of Commons, the Prime Minister's authority was further enhanced by the Parliament Act of 1911 which marginalised the influence of the House of Lords in the law-making process.
The Prime Minister is the head of the United Kingdom government. As such, the modern Prime Minister leads the Cabinet (the Executive). In addition, the Prime Minister leads a major political party and generally commands a majority in the House of Commons (the lower House of the legislature). The incumbent wields both significant legislative and executive powers. Under the British system, there is a unity of powers rather than separation. In the House of Commons, the Prime Minister guides the law-making process with the goal of enacting the legislative agenda of their political party. In an executive capacity, the Prime Minister appoints (and may dismiss) all other Cabinet members and ministers, and co-ordinates the policies and activities of all government departments, and the staff of the Civil Service. The Prime Minister also acts as the public "face" and "voice" of Her Majesty's Government, both at home and abroad. Solely upon the advice of the Prime Minister, the Sovereign exercises many statutory and prerogative powers, including high judicial, political, official and Church of England ecclesiastical appointments; the conferral of peerages and some knighthoods, decorations and other important honours.