Leviticus 18:27

27 (for the inhabitants of the land, who were before you, committed all of these abominations, and the land became 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 Thus the land became defiled; and I punished it for its iniquity, and the land vomited out its inhabitants.
26 But you shall keep my statutes and my ordinances and commit none of these abominations, either the citizen or the alien who resides among you
27 (for the inhabitants of the land, who were before you, committed all of these abominations, and the land became defiled);
28 otherwise the land will vomit you out for defiling it, as it vomited out the nation that was before you.
29 For whoever commits any of these abominations shall be cut off from their people.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.