From the 9th into the 6th centuries BCE the Yahwistic religion separated itself from its Canaanite heritage as Yahweh became the main god of the Kingdom of Israel (Samaria) and of Judah, and over time the royal court and Temple in Jerusalem promoted Yahweh as the god of the entire cosmos, possessing all the positive qualities previously attributed to the other gods and goddesses. By the end of the Babylonian captivity (6th century BCE), the very existence of foreign gods was denied, and Yahweh was proclaimed as the creator of the cosmos and the one true God of all the world.