The line "All the world's a stage, and men and women merely players" appears in William Shakespeare's As You Like It.
Precise location: Act 2, Scene 7, spoken by Jaques.
Duke Senior's forest court. Jaques has just encountered Touchstone, relished the fool's wisdom, and requested "liberty to speak my mind." The Duke grants it. Jaques delivers the Seven Ages—this line opens the speech.
As You Like It is Shakespeare's most meta-theatrical comedy: disguise, role-playing, gender performance, forest-as-stage. The "world as stage" line isn't inserted—it organizes the play's logic. Rosalind directs her own courtship as Ganymede; the forest becomes a rehearsal space for adulthood.
The line belongs to Jaques, but the play proves it true.