The Old Testament, a sacred text for Judaism and Christianity, was completed over centuries. The writing began around the 12th century BCE, culminating by the 2nd century BCE. The most significant texts were finalized during and after the Babylonian exile, reflecting historical, cultural, and theological developments of ancient Israel.