Answer:
The main idea of the poem is that the life is similar to a drama where every individual is playing a specific role.
Explanation:
In the sonnet "All the World's a Stage", Shakespeare presents a comparison between the functioning of the world and the lives of the human beings. He demonstrates the world to be a stage, where every individual plays a specific role. Every individual is born and has a specific time for death. This is compared with the entry and exit of the actors on the stage. The roles that the actor play in the drama is similar to the roles that an individual plays in his life.