Leviticus 18:27

27 (for all these abominations have the men of the land done who [are] before you, and the land is defiled),

Leviticus 18:27 Meaning and Commentary

Leviticus 18:27

For all these abominations have the men of the land done
The then present inhabitants of Canaan, who dwelt in it before the Israelites came into it; these were guilty of unclean copulations, of incestuous, marriages, of fornication and adultery, and of bestiality and idolatry: which [were] before you;
lived in the land before them, had long dwelt there, but now about to be cast out for their sins; and therefore they who were going to succeed them should take warning by them, lest, committing the same sins, they should be cast out likewise: and the land is defiled; (See Gill on Leviticus 18:25).

Leviticus 18:27 In-Context

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,
27 (for all these abominations have the men of the land done who [are] before you, and the land is defiled),
28 and the land doth not vomit you out in your defiling it, as it hath vomited out the nation which [is] before you;
29 for any one who doth [any] of all these abominations -- even the persons who are doing [so], have been cut off from the midst of their people;
Young's Literal Translation is in the public domain.