Upon the retirement of Lord Liverpool in April 1827, Canning was called to be Prime Minister. The more conservative Tories, including Sir Robert Peel, withdrew their support, and an alliance was formed between the liberal members of the late ministry and the Whigs. The post of Chancellor of the Exchequer was offered to Palmerston, who accepted it, but this appointment was frustrated by some intrigue between the King and John Charles Herries. Lord Palmerston remained Secretary at War, though he gained a seat in the cabinet for the first time. The Canning administration ended after only four months on the death of the Prime Minister, and was followed by the ministry of Lord Goderich, which barely survived the year.