The UK Permanent Secretary to the Treasury is the most senior civil servant at HM Treasury. The post originated as that of Assistant Secretary to the Treasury in 1805; that office was given new duties and renamed in 1867 as a Permanent Secretaryship. The position is generally regarded as the second most influential in His Majesty's Civil Service; Andrew Turnbull (Permanent Secretary from 1998 to 2002) and Gus O'Donnell (2002–2005) were Permanent Secretaries to the Treasury who then became Cabinet Secretary, the most influential post.