Life Is a Dream is a play by the Spanish writer Pedro Calderon de la Barca . It was first performed in 1635 . It is an allegory of the human situation, fate and the mystery of life. It is one of Calderon's best-known plays.