This patter song was written for the 1882 operetta Iolanthe, in which the Lord Chancellor describes in vivid terms the insomnia that he’s suffering and the dreams that come to him in sleep.