After the death of Canning in the same year Huskisson accepted the secretaryship of the colonies under Lord Goderich, an office which he continued to hold in the new cabinet formed by the Duke of Wellington in the following year. After succeeding with great difficulty in inducing the cabinet to agree to a compromise on the corn laws, Huskisson finally resigned office in May 1828 on account of a difference with his colleagues in regard to the disfranchisement of East Retford.