The line "All the world's a stage, and all the men and women merely players" originates from William Shakespeare's As You Like It, spoken by Jaques in Act 2, Scene 7—the opening of his "Seven Ages of Man" monologue.
All the world's a stage,
And all the men and women merely players;
They have their exits and their entrances,
And one man in his time plays many parts,
His acts being seven ages...
Life as performance: we enter (birth), play roles (child, lover, soldier, judge, elder), exit (death). The metaphor captures transience, role-playing, and the theatricality of social existence. Jaques—melancholic, exiled, observing—sees through the costumes to the shared script.
Four centuries later, we still use this language: "playing a role," "exit stage left," "act your age." Shakespeare gave us the vocabulary for identity as performance. The stage isn't a metaphor for life; life is the original stage, theatre just its conscious reflection.