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 murder, espionage, treason, or as part of military justice. In some countries sexual crimes, such as rape, adultery, incest and sodomy, carry the death penalty, as do religious crimes such as apostasy in Islamic nations (the formal renunciation of the state religion). In many countries that use the death penalty, drug trafficking is also a capital offense. In China, human trafficking and serious cases of corruption are punished by the death penalty. In militaries around the world courts-martial have imposed death sentences for offenses such as cowardice, desertion, insubordination, and mutiny.