Pericles? Cardenio? Who knows?
Nobody can be exactly sure which plays were written when, or what order they were written in. There are some clues which usually tell us that a certain play must have been written before a certain date, when it was seen by someone, or put in the Stationer's Register, or commented on, or printed in book form. But these clues give us only a date before which the play must have been written, not the date it was written on.
Scholars have put together many lists of the order in which Shakespeare's plays were written. They are all different from each other. There is no way to know which if any is right, or which was Shakespeare's first, second, third or last play.
2 years
The last play of Shakespeare's four great tragedies is "Macbeth" and it was written in 1606. He wrote the first of the great tragedies, "Hamlet" in 1600.
Henry VIII, also called All Is True, which he co-wrote with John Fletcher.
The Tempest. Scholars think this was the last play Shakespeare wrote without a collaborator. The idea that it was Shakespeare's "farewell to the stage" is somewhat fanciful.
Ophelia
Shakespeares "Othello"
The audience
hamlet
Julius Caesar
Miranda
All seasons.
Ariel