Portugal was one of the first countries to abolish the death penalty for civil crimes in 1867. It later abolished it for military crimes in 1977.