The position was established in 1705, when the office of Secretary of the Universal Dispatch was divided in two: one for War and Finance and other for everything else, known as Secretary of State (focused on foreign affairs and internal government). Later, in 1714, it was again divided to established an independent department for justice and religious affairs. In practice, this official acted as a
prime minister and was therefore also known as the "First Secretary of State". As an example, new Crown ministers were sworn in before this minister. This position was appointed at the king's discretion, and such was its influence over the monarch and the administration that, by the beginning of the 19th century, its department not only covered
international relations, but also all kinds of internal government matters, both related to the
royal family and to the
post office,
roads and
trails,
charity,
health care,
education,
arts and
sciences, among others. At the beginning of the 19th century, it gradually lost responsibilities to other ministerial portfolios, such as the
Ministry of the Interior, although it retained its prominence during the first half of that period thanks to the fact that the Presidency of the Council of Ministers was linked to the Ministry of State.
Relation with the prime minister All foreign ministers from 1705 to 1836 led the
Spanish government.
The Count of Almodóvar, minister of state from April to May 1836, was the first person to serve as such without being the head of government, under
Juan Álvarez Mendizábal. Although in later years we can still find ministers of state who, at the same time, were prime ministers, this practice was abandoned starting in the second half of the 19th century. As an example of the exceptionality that this currently represents, the last four prime ministers who were secretaries of state were:
The Count of Romanones (December 1918-April 1919),
The Marquess of Estella (February 1927-January 1930),
The Count of Xauen (January–February 1930) and
Augusto Barcia Trelles (for three days in 1936). The last person to be prime minister after serving as minister of foreign affairs was
Alejandro Lerroux, who served as minister of state from April to December 1931 and was appointed prime minister in September 1933. ==Residence==