In what context did Shakespeare create The Winter's Tale?

After 1608, Shakespeare entered the final period of his creation. At this time, Shakespeare had seen that the ideal of humanism could not be realized in the real society, so he turned from writing tragedies to writing legendary plays, and from exposing and criticizing the darkness of real society to writing about the dream world. Therefore, this period is also called Shakespeare's legendary drama period. During this period, his works often used mythical fantasy and supernatural power to resolve the contradiction between ideals and reality; the works are run through the spirit of forgiveness and reconciliation, without the joy in the early stage or the gloom in the middle stage, but full of Beautiful fantasy of life, rich in romance.

It was against this background that Shakespeare created the legendary play "The Winter's Tale".