<Tr> <Th> Alma mater </Th> <Td> Trinity College, Cambridge </Td> </Tr> <Tr> <Th> Signature </Th> <Td> </Td> </Tr> <P> Spencer Perceval, KC (1 November 1762--11 May 1812) was a British statesman who was Prime Minister of the United Kingdom from October 1809 until his assassination in May 1812 . Perceval is the only British prime minister to have been murdered . He was also the only Solicitor General or Attorney General to become Prime Minister . </P> <P> The younger son of an Irish earl, Perceval was educated at Harrow School and Trinity College, Cambridge . He studied Law at Lincoln's Inn, practised as a barrister on the Midland circuit and in 1796 became a King's Counsel before entering politics aged 33 as a Member of Parliament for Northampton . A follower of William Pitt, Perceval always described himself as a "friend of Mr Pitt" rather than a Tory . Perceval was opposed to Catholic emancipation and reform of Parliament; he supported the war against Napoleon and the abolition of the slave trade . He was opposed to hunting, gambling and adultery, did not drink as much as most members of Parliament at the time, gave generously to charity, and enjoyed spending time with his thirteen children . </P>

Who was the only prime minister to be assassinated