The Conservative government under Benjamin Disraeli had been defeated at the 1868 general election, so in December 1868 the victorious William Gladstone formed his first government. He introduced reforms in the British Army (including the abolition of the purchase system), the legal system (establishing the Supreme Court of Judicature) and the Civil Service, and disestablished the Church of Ireland. In foreign affairs he pursued a peaceful policy. His ministry was defeated in the 1874 election, whereupon Disraeli formed a ministry and Gladstone retired as Leader of the Liberal Party.