In the UK, the death penalty is no longer used as a punishment for any crime. The last execution in the UK took place in 1964. However, certain offences such as treason, piracy with violence, and certain offences under the Official Secrets Act are punishable by life imprisonment.