The people were guilty of idolatry--a grievous affront to a high and holy (and jealous) God. A God who had shown Himself incredibly strong in the lives of the Israelites. He is always justified for He is perfect--too wise to make a mistake and too just to do wrong.