Leviticus 18:24

24 `Ye are not defiled with all these, for with all these have the nations been defiled which I am sending away from before you;

Leviticus 18:24 Meaning and Commentary

Leviticus 18:24

Defile not ye yourselves in any of these things
In incestuous copulations and marriages, in adultery, corporeal and spiritual, and bestiality: for in all these the nations are defiled which I cast out before you;
that is, the seven nations of the land of Canaan, which God was about to eject out of their land to make room for the Israelites, and that on account of the above shocking vices which abounded among them; so that in some sense the land they dwelt upon was defiled by them, and called for vengeance on them, as even loathing its inhabitants, as afterwards suggested.

Leviticus 18:24 In-Context

22 `And with a male thou dost not lie as one lieth with a woman; abomination it [is].
23 `And with any beast thou dost not give thy copulation, for uncleanness with it; and a woman doth not stand before a beast to lie down with it; confusion it [is].
24 `Ye are not defiled with all these, for with all these have the nations been defiled which I am sending away from before you;
25 and the land is defiled, and I charge its iniquity upon it, and the land vomiteth out its inhabitants:
26 and ye -- ye have kept My statutes and My judgments, and do not [any] of all these abominations, the native and the sojourner who is sojourning in your midst,
Young's Literal Translation is in the public domain.