When diaspora Jews returned to Judah, the people of Israel, after learning the hard lessons from their infidelity and disobedience to God, resolved to keep their identity by observing the commandments, and avoiding contamination from any foreign and pagan worship.