It was frequent in ancient Greece. However, in later cultures influenced by Abrahamic religions, the law and the church established sodomy as a transgression against divine law or a crime against nature.