In the oldest biblical literature, Yahweh is a typical ancient Near Eastern "divine warrior", who leads the heavenly army against Israel's enemies;[8] he later became the main god of the Kingdom of Israel (Samaria) and of Judah,[9] and over time the royal court and temple promoted Yahweh as the god of the entire cosmos, possessing all the positive qualities previously attributed to the other gods and goddesses.[10][11] By the end of the Babylonian exile (6th century BCE), the very existence of foreign gods was denied, and Yahweh was proclaimed as the creator of the cosmos and the true god of all the world.[11]