During the general elections of September 1780, at the age of 21, Pitt contested the University of Cambridge seat, but lost. Still intent on entering Parliament, Pitt secured the patronage of James Lowther, later 1st Earl Lowther, with the help of his university friend, Charles Manners, 4th Duke of Rutland. Lowther effectively controlled the pocket borough of Appleby; a by-election in that constituency sent Pitt to the House of Commons in January 1781. Pitt's entry into parliament is somewhat ironic as he later railed against the very same pocket and rotten boroughs that had given him his seat.