Sodium pentobarbital is a controlled substance that is regulated and restricted in most countries, including the United States. It is primarily used as an anesthetic or in euthanasia. It is illegal to buy or possess sodium pentobarbital without a prescription or license. It is also illegal to use sodium pentobarbital for euthanasia or to help someone commit suicide in most countries.