The second son of the 9th Earl of Northampton, Compton studied at Trinity College, Cambridge, receiving a Master of Arts degree in 1810. In 1812, following the assassination of his cousin, the prime minister Spencer Perceval, Compton, by now Earl Compton as heir to the Marquessate, took his seat for Northampton in the House of Commons. In the Commons, Compton established a reputation as something of a maverick. Despite his family's strong Tory credentials, he often voted against the Tory government of the day. This led to his losing his seat in the general election of 1820. After 1820 Compton took up residence in Italy, where his house became a centre of attraction, and exercised his influence in favour of many of the unfortunate victims of despotic authority both in Lombardy and in Naples. He returned to England in 1830, and became a prominent figure in political and cultural life. He supported the Reform Bill in the House of Lords, but became more engaged in promoting the arts and sciences. In 1820–22 he was president of the Geological Society of London. He served as president of the Archaeological Institute of Great Britain and Ireland, and in 1838 became president of the Royal Society, an office he held for ten years. He took a particular interest in geology, especially in fossils, although he was not himself a scientist, but more of an interested amateur. The dinosaur species Regnosaurus northamptoni was named after him. He resigned in 1848, due to his opposition to the Society's increasing professionalization. Compton was elected a Foreign Honorary Member of the American Academy of Arts and Sciences in 1846. He held the position of President of the Royal Society of Literature from 1849 until his death. He died on 17 January 1851, and was buried at Castle Ashby on 25 January.
Family
On 24 July 1815 Compton married Margaret Douglas-Maclean-Clephane, who was a poet admired by Sir Walter Scott and William Wordsworth, although her poetry was not published. The marriage was a happy one, producing six children. The couple lived in Italy for ten years from 1820 to 1830. Compton succeeded his father as Marquess of Northampton in 1828. Following Lady Northampton's death in 1830, Northampton returned to England. Among their children were:
Charles Compton, 3rd Marquess of Northampton
Lady Marianne Margaret Compton, later Lady Marian Alford