God was in control of history and used Nebuchadnezzar king of Babylon to punish Israel for their impiety. Nebuchadnezzar took captives from Jerusalem to Babylon in 605 BC, 597 BC and finally destroyed Jerusalem in 586 BC. Daniel and his friends were among those taken to Babylon in 605 BC. They refused to compromise their faith by eating the king's food or worshipping idols. God rewarded their faithfulness by giving them superior wisdom and knowledge. Their example teaches us that God will give us wisdom to remain faithful to Him even in hostile environments, and that He will bless those who obey Him no matter the circumstances.