Shared ground
Deuteronomy 21:22–23 assumes a real case: someone has committed an offense “worthy of death,” has been executed, and the body is then hung “on a tree” as a public display. The text is clear that this display must be temporary: the body must not remain there overnight and must be buried the same day.
The stated reason is also explicit: “he who is hanged is accursed of God,” and leaving that curse-sign visible into the next day would “defile” the land Yahweh is giving Israel as an inheritance (Deuteronomy 21:22–23). In other words, the rule is not mainly about whether the person was guilty (that is assumed), but about how the community handles the aftermath so the land is not polluted.
Where interpretation differs
Two main questions come up.
First, what exactly is the “tree”? Some read it as an actual tree; others understand it more broadly as a wooden structure (like a post or stake) used for public display. The instruction works either way: the body is suspended on wood in public view.
Second, does “hang him on a tree” describe the method of execution or what happens after death? Many think the text describes post-execution display (the person “is put to death” and then hung), while others think hanging could be the execution method in view. Either way, the rule being stressed is about timely removal and burial.
Why the disagreement exists
The Hebrew wording can be read in a way that either separates the death from the hanging (execution first, display second) or lets them overlap. Also, “tree” language can naturally refer to a living tree, but it can also function as a general way to speak about wood used for suspension.
What this passage clearly contributes
This passage ties public treatment of an executed person’s body to the spiritual condition of the community’s land. The ongoing display of the corpse is treated as more than a social warning; it is a religiously dangerous sign because the hanged person is called “accursed of God.” Therefore, burial “that same day” functions as a boundary: public justice is carried out, but public exposure of the cursed body is not allowed to linger and spread defilement across the land Israel is receiving as an inheritance.