Spencer Perceval is the only British prime minister to have been assassinated. Sir Robert Peel, Margaret Thatcher and John Major survived targeted assassination attempts in 1843, 1984 and 1991 respectively while in office, while Edward Heath survived one in 1974 after he had been ousted from office.