The Book of Job is generally believed to be set in a time period around the patriarchal era: 2000-1800 BC.
However it was likely written sometime between the 7th and 4th centuries BCE, with most scholars placing it during the Babylonian exile period (587-539 BCE) based on internal clues within the text and the style of wisdom literature present in the book.