Yahweh alone delivered the Israelites from slavery and so he alone is to be worshiped (monolatry). This command preps the Israelites for the next stage of their journey—when they enter the land of Canaan with its own lineup of deities, like the storm and war god Baal and the fertility goddess Asherah (mentioned all over the place, especially in 1 and 2 Kings).

