Refers to execution or death by hanging, often with a rope around the neck. The word itself is neutral but the act is severe.
In the past, criminals were sometimes sentenced to death by hanging.
Hanging was one form of public execution.
The criminal was executed by hanging.
The traitor was hanged.