The play was written in 1599 or early 1600. Shakespeare rarely invented his own plays. He based his plays on stories by other writers. The story he used for "As You Like It" was "Rosalynde, Euphues Golden Legacy" (1590) by Thomas Lodge. 