Deuteronomy 22:21

21 then they have brought out the damsel unto the opening of her father's house, and stoned her have the men of her city with stones, and she hath died, for she hath done folly in Israel, to go a-whoring [in] her father's house; and thou hast put away the evil thing out of thy midst.

Deuteronomy 22:21 Meaning and Commentary

Deuteronomy 22:21

Then they shall bring out the damsel to the door of her
father's house
For his greater disgrace, and as a sort of punishment for his neglect of her education, not taking care to instruct her, and bring her up in a better manner:

and the men of her city shall stone her with stones, that she die;
which was the death this sort of adulteresses were put to; others was by strangling, and the daughter of a priest was to be burnt; see ( Leviticus 20:10 ) ( 21:9 ) , which shows that this sin was committed by her after her espousals, as Jarchi and Aben Ezra note; or otherwise it would have been only simple fornication, which was not punishable with death:

because she hath wrought folly in Israel:
a sin, as all sin is folly, and especially any notorious one, as this was; and which is aggravated by its being done in Israel, among a people professing the true religion, and whom God had chosen and separated from all others to be a holy people to himself:

to play the whore in her father's house;
where she continued after her espousals, until she was taken to the house of her husband, to consummate the: marriage; and between the one and the other was this sin committed, and which is another reason for her execution at the door of her father's house:

so shalt thou put evil away from among you;
deter others from it by such an example, and remove the guilt of it from them, which otherwise would lie upon them, if punishment was not inflicted; the Targum of Jonathan interprets it of the putting away of her that did the evil.

Deuteronomy 22:21 In-Context

19 and fined him a hundred silverlings, and given to the father of the damsel, because he hath brought out an evil name on a virgin of Israel, and she is to him for a wife, he is not able to send her away all his days.
20 `And if this thing hath been truth -- tokens of virginity have not been found for the damsel --
21 then they have brought out the damsel unto the opening of her father's house, and stoned her have the men of her city with stones, and she hath died, for she hath done folly in Israel, to go a-whoring [in] her father's house; and thou hast put away the evil thing out of thy midst.
22 `When a man is found lying with a woman, married to a husband, then they have died even both of them, the man who is lying with the woman, also the woman; and thou hast put away the evil thing out of Israel.
23 `When there is a damsel, a virgin, betrothed to a man, and a man hath found her in a city, and lain with her;
Young's Literal Translation is in the public domain.