History of the Book of Daniel

Daniel was among the Jewish captives who were brought to Babylon from Jerusalem after Nebuchadnezzar conquered the city. Daniel was still a youth but apparently of high status (Daniel 1:3). He was of such a high status that he was considered one of the wise men of the court of Babylon .He was quickly recognized in Babylon for his devotion to the one God Yahweh, and he refused to eat of the "dainties" which were brought to him by the king's servants. He also became recognized as the interpreter of dreams (Daniel 1:8- 16), because when King Nebuchadnezzar being disturbed by a dream asked his own wise men to interpret they could not. Daniel offered to give the king the interpretation and the King was very appreciative to Daniel, he was so impressed that he allowed Daniel to rise to a place of great prominence in Babylon. Later when Babylon fell to the Persians the Jews had new masters over them, and Daniel was quickly recognized as a very special man and he had favor with the king of Persia. This caused many of those in authority to scrutinize Daniel and to look for flaws in his character and they could not find any. They developed a plot which forced the King to have Daniel thrown in the lion's den. The King recognizing their treachery and hoped for Daniel's deliverance, and when the Lord saved Daniel from the mouth of the lions Darius ordered his own leaders to be thrown into the lion's den and they were torn in pieces immediately.

Link: https://bible-history.com/old-testament/bookofdaniel