During the third year of King Jehoiakim's reign in Judah, King Nebuchadnezzar of Babylon came to Jerusalem and besieged it with his armies.
References for Daniel 1:1
The Lord gave him victory over King Jehoiakim of Judah. When Nebuchadnezzar returned to Babylon, he took with him some of the sacred objects from the Temple of God and placed them in the treasure-house of his god in the land of Babylonia.
References for Daniel 1:2
Then the king ordered Ashpenaz, who was in charge of the palace officials, to bring to the palace some of the young men of Judah's royal family and other noble families, who had been brought to Babylon as captives.
"Select only strong, healthy, and good-looking young men," he said. "Make sure they are well versed in every branch of learning, are gifted with knowledge and good sense, and have the poise needed to serve in the royal palace. Teach these young men the language and literature of the Babylonians."
References for Daniel 1:4
The king assigned them a daily ration of the best food and wine from his own kitchens. They were to be trained for a three-year period, and then some of them would be made his advisers in the royal court.
Daniel, Hananiah, Mishael, and Azariah were four of the young men chosen, all from the tribe of Judah.
The chief official renamed them with these Babylonian names: Daniel was called Belteshazzar. Hananiah was called Shadrach. Mishael was called Meshach. Azariah was called Abednego.
But Daniel made up his mind not to defile himself by eating the food and wine given to them by the king. He asked the chief official for permission to eat other things instead.
Now God had given the chief official great respect for Daniel.
But he was alarmed by Daniel's suggestion. "My lord the king has ordered that you eat this food and wine," he said. "If you become pale and thin compared to the other youths your age, I am afraid the king will have me beheaded for neglecting my duties."
Daniel talked it over with the attendant who had been appointed by the chief official to look after Daniel, Hananiah, Mishael, and Azariah.
"Test us for ten days on a diet of vegetables and water," Daniel said.
"At the end of the ten days, see how we look compared to the other young men who are eating the king's rich food. Then you can decide whether or not to let us continue eating our diet."
So the attendant agreed to Daniel's suggestion and tested them for ten days.
At the end of the ten days, Daniel and his three friends looked healthier and better nourished than the young men who had been eating the food assigned by the king.
So after that, the attendant fed them only vegetables instead of the rich foods and wines.