Daniel and his friends were captured by the king of Babylon during an invasion of Israel.