Per Wikipedia] The first page of All's Well that Ends Well from the First Folio of Shakespeare's plays, published in 1623. It is believed to have been written between 1604 and 1605, and was originally published in the First Folio in 1623.
Though originally the play was classified as one of Shakespeare's comedies, the play is now considered by some critics to be one of his unclassified] plays, so named because it cannot neatly be classified as tragedy or comedy.