“So keep my charge never to practice any of these abominable customs …” (v30). God commanded the Israelite to be “clean,” to avoid all sexual perversion, including homosexual behavior and sex with animals (v22-23). They were also told never to sacrifice their children, a terrible practice that was part of some religions, like the worship of Molech (v21). God warned that all these things would bring terrible consequences; even the land itself (created by God) would reject their presence (v25).
“I am the Lord your God” (v4). He is full of love and goodness, and He calls us to live in way that reflects Him and flows with His good purposes for the world.