The end of Judah came suddenly. The city was destroyed, and the people were carried away into Babylon. The Yahweh-Baal struggle ended with the captivity. And the captivity shocked the remnant of Israel into monotheism. 
Sargon, king of Assyria, in subduing a revolt in central Palestine, carried away and into captivity over twenty-five thousand Jews of the northern kingdom of Israel and installed in their place an almost equal number of the descendants of the Cuthites, Sepharvites, and the Hamathites.  The national ego of the Jews was tremendously depressed by the Babylonian captivity.  Hebrews carried back Sabbath taboos from Babilonia. 
During the captivity the Jews were much influenced by Babylonian traditions and legends, although it should be noted that they unfailingly improved the moral tone and spiritual significance of the Chaldean stories which they adopted, notwithstanding that they invariably distorted these legends to reflect honor and glory upon the ancestry and history of Israel. 
The later captivity that enslaved the Jews in Babylon finally liberated the evolving concept of Yahweh to assume the monotheistic role of the God of all nations.  Nebuchadnezzar destroyed Jerusalem and carried people away into Babylon.  Persia freed Jews from Babylonian captivity. 
After the priests of the Babylonian exile had prepared their new record of God’s supposedly miraculous dealings with the Hebrews, the sacred history of Israel as portrayed in the Old Testament, they carefully and completely destroyed the existing records of Hebrew affairs—such books as “The Doings of the Kings of Israel” and “The Doings of the Kings of Judah,” together with several other more or less accurate records of Hebrew history.