He burned his own son as a sacrifice. He practiced magic and told the future by explaining signs and dreams. He got advice from mediums and fortune-tellers. He did many things that the Lord said were wrong. And this made the Lord angry.