What does Hamlet mean when he says Denmark’s a prison?

What does Hamlet mean when he says Denmark’s a prison? Hamlet refers to Denmark as a prison, because he feels trapped and isolated in the kingdom and cannot leave to attend the University of Wittenberg. Because of this, he feels he is confined there and cannot be free, thus the feeling that it is a prison.

Why does Hamlet regard Denmark’s a prison? Denmark is a prison for Hamlet because he has realized that even his childhood friends cannot be trusted and that he is being spied on by many. In fact, Hamlet says that the world is a prison and Denmark is one of the worst dungeons because he feels there is no one he can trust.