Overview
The prime minister of Spain, officially president of the Government, is the head of government of Spain. The office was established in its current form by the Constitution of 1978 and it was first regulated in 1823 as a chairmanship of the extant Council of Ministers, although it is not possible to determine when it actually originated.
Upon a vacancy, the Spanish monarch nominates a presidency candidate for a vote of confidence by the Congress of Deputies, the lower house of the (parliament). The process is a parliamentarian investiture by which the head of government is indirectly elected by the elected Congress of Deputies. In practice, the prime minister is almost always the leader of the largest party in the Congress. Since current constitutional practice in Spain calls for the king to act on the advice of his ministers, the prime minister is the country's de facto chief executive.
Pedro Sánchez of the Spanish Socialist Workers' Party (PSOE) has been prime minister since 2 June 2018, after a successful motion of no confidence against former prime minister Mariano Rajoy. The Sánchez government technically ceased on 29 April 2019 after the 2019 Spanish general election, but was acting afterwards. However, following the November 2019 general election, Sánchez earned a second mandate as prime minister after receiving a plurality of votes in the second round vote of his investiture at the Congress of Deputies on 7 January 2020. He then resumed being the official prime minister after he was sworn in by King Felipe on 8 January 2020. His new government was then sworn in by King Felipe on 13 January 2020.
Official title
The Spanish head of government has been known, since 1939, as "President of the Government", but the term 'president' is far older. Spain was not unique in this regard: it was one of several European parliamentary systems including France, Italy and Ireland that styled the head of government as 'presidents' of the government rather than the Westminster term of 'prime minister' (see President of the Council for the full list of corresponding terms); similarly, the president of the Congress or Senate referred to the parliamentary speakers. This system of multiple distinct offices all labelled 'president' causes confusion among English-speakers: both President George W.
From Wikipedia (CC BY-SA 4.0).