Execution of criminals and political opponents has been used by nearly all societies—both to punish crime and to suppress political dissent. In most countries that practice capital punishment it is reserved for treason,. The courts-martial have imposed death sentences for offenses such as mutiny.