Israel turned away from God to idol worship many times. God warned them through prophets but they did not listen. Babylon conquered Jerusalem and took Daniel and his friends captive. They were trained in Babylon but refused to eat the king's unclean food or drink wine, instead requesting a vegetarian diet. After 10 days they seemed healthier, so their diet was allowed. They greatly excelled in wisdom above all others. Their secret was purposefully obeying God's laws with his blessing.