Belshazzar's feast, or the story of the writing on the wall (chapter 5 in the Book of Daniel), tells how Belshazzar holds a great feast and drinks from the vessels that had been looted in the destruction of the First Temple. A hand appears and writes on the wall. The terrified Belshazzar calls for his wise men, but they are unable to read the writing. The queen advises him to send for Daniel, renowned for his wisdom. Daniel reminds Belshazzar that his father Nebuchadnezzar, when he became arrogant, was thrown down until he learned that God has sovereignty over the kingdom of men (see Daniel 4). Belshazzar had likewise blasphemed God, and so God sent this hand. Daniel then reads the message and interprets it: God has numbered Belshazzar's days, he has been weighed and found wanting, and his kingdom will be given to the Medes and the Persians.
The message of Daniel 5 is the contrast it offers between Nebuchadnezzar and Belshazzar: Nebuchadnezzar is humbled by God, learns his lesson (he acknowledges the ultimate kingship of the God of Israel), and is restored to his throne; Belshazzar, in contrast, learns nothing from Nebuchadnezzar's example, blasphemes against God, and his kingdom is given to others.
According to John J. Collins, Belshazzar's feast is a legend conforming to the subgenre of the "tale of court contest", complicated by the inclusion of Daniel's indictment of Belshazzar's pride and his failure to honour the God of Israel; as a result the tale has a double ending, in which Daniel is first showered with rewards and honours for interpreting the omen, and the king is then punished to fulfill the sentence pronounced by Daniel.
From the story the idiom "to be able to read the writing on the wall" came to mean being able to see from available evidence that doom or failure is inevitable, and "the writing on the wall" itself can mean anything portending such doom or failure.
Summary
Narrative summary
This section summarizes the narrative, as found in C. L. Seow's translation of the text in his commentary on Daniel.
King Belshazzar holds a great feast for a thousand of his lords, and commands that the Temple vessels from Jerusalem be brought in so that they can drink from them, but as the Babylonians drink, a hand appears and writes on the wall. Belshazzar calls for his magicians and diviners to interpret the writing, but they are unable even to read it. The queen advises Belshazzar to send for Daniel, renowned for his wisdom. Daniel is brought in, and the king offers to make him third in rank in the kingdom if he can interpret the writing. Daniel declines the honour, but agrees to the request. He reminds Belshazzar that his father Nebuchadnezzar's greatness was the gift of God, and that when he became arrogant God threw him down until he learned humility: "the Most High God has sovereignty over the kingdom of mortals, and sets over it whomever He will." Belshazzar has drunk from the vessels of God's Temple and praised his idols, but he has not given honour to God, and so God sent this hand and wrote these words:
Daniel reads the words "MENE, MENE, TEKEL, UPHARSIN" and interprets them for the king: "MENE, God has numbered the days of your kingdom and brought it to an end; TEKEL, you have been weighed ... and found wanting;" and "UPHARSIN", your kingdom is divided and given to the Medes and Persians. Then Belshazzar gave the command, and Daniel was clothed in purple, a chain of gold was put around his neck, and a proclamation was made… that he should rank third in the kingdom; [and] that very night Belshazzar the Chaldean (Babylonian) king was killed, and Darius the Mede received the kingdom."