God brought judgment against Judah by sending them to Babylon. Despite being taken captive, Daniel was a man of good character, prayer and faith. God put Daniel in various leadership positions to protect His people. Through Daniel, God revealed important prophecies for Israel, the nations and exact timing of Jesus Christ's sacrifice on the cross. Then Daniel describes seven years of Tribulation that includes the little horn (Antichrist) who rules the lion/bear/leopard (beast). Daniel introduces prophetic themes later expanded in Revelation.
There is a God in heaven that reveals secrets, and makes known to the king Nebuchadnezzar what shall be in the latter days (Daniel 2:28).