In the Old Testament, adultery is the primary metaphor used for Israel's unfaithfulness to her covenant with God; he, the ever-faithful husband, remains soliticious for his unfaithful bride.
The unfaithfulness of Israel is a real, outward metaphor for every person's sinfulness before God.