<human>: Wenceslas was considered a martyr and a saint immediately after his death in the 10th century, when a cult of Wenceslas rose up in Bohemia and in England. Within a few decades of Wenceslas' death, four biographies of him were in circulation. These hagiographies had a powerful influence on the High Middle Ages conceptualization of the rex iustus, or "righteous king"--that is, a monarch whose power stems mainly from his great piety, as well as from his princely vigor.  Referring approvingly to these hagiographies, a preacher from 12th century says:  But his deeds I think you know better than I could tell you; for, as is read in his Passion, no one doubts that, rising every night from his noble bed, with bare feet and only one chamberlain, he went around to God's churches and gave alms generously to widows, orphans, those in prison and afflicted by every difficulty, so much so that he was considered, not a prince, but the father of all the wretched.  Several centuries later the legend was claimed as fact by Pope Pius II, who himself also walked ten miles barefoot in the ice and snow as an act of pious thanksgiving.  Although Wenceslas was, during his lifetime, only a duke, Holy Roman Emperor Otto I posthumously "conferred on [Wenceslas] the regal dignity and title" and that is why, in the legend and song, he is referred to as a "king". The usual English spelling of Duke Wenceslas's name, Wenceslaus, is occasionally encountered in later textual variants of the carol, although it was not used by Neale in his version. Wenceslas is not to be confused with King Wenceslaus I of Bohemia (Wenceslaus I Premyslid), who lived more than three centuries later. CANNOTANSWER

Answer this question "What was he duke of?" by extracting the answer from the text above.
<bot>: CANNOTANSWER