Answer:
To illustrate the inevitability of death and its power to disrupt even the most luxurious and joyful of settings.
Step-by-step explanation:
He tells the story of a prince who creates a lavish world inside his castle walls in an attempt to avoid a terrible plague, only to have that world invaded and destroyed by a personification of death. The story serves as a cautionary tale and a reminder that no amount of wealth or privilege can protect one from their eventual demise.