He did many disgusting things as a result of worshiping idols as the Amorites had done. (The Lord confiscated their land for Israel.)