Margaret Thatcher
The first woman to hold the office, Thatcher won three general elections as party leader.
Politics
This list counts time in office from 1 January 1900 onwards and adds up separate spells. Lord Salisbury returned to office in 1895, so only the final portion of his service falls within this comparison.

Total time in office since 1900
The first woman to hold the office, Thatcher won three general elections as party leader.
Blair’s first government took office in 1997 with a large Commons majority.
Asquith was prime minister when the United Kingdom entered the First World War.
Churchill returned to office six years after the change of government in 1945.
Wilson returned to office after the first of two general elections in 1974.
Baldwin’s total is spread across three separate spells in office.
MacDonald led the first Labour government in 1924 and headed a cross-party National Government from 1931.
Macmillan took office after Anthony Eden resigned.
Major succeeded Thatcher and won the 1992 general election.
The National Health Service began operating in 1948 under Attlee’s government.