Conversation so far:
Who is the story, Good King Wenceslas, based on?
The legend of the Good King Wenceslas is based on the life of the historical Saint Wenceslaus I, Duke of Bohemia
When was the Good King Wenceslas legend created?
Saint Wenceslas I, Duke of Bohemia was considered a martyr and a saint immediately after his death in the 10th century.

Question: What did the righteous king do?
Self-contained rewrite: What did Good King Wenceslas do?