an analysis of the tragedy of hamlet written by william shakespeare The tragedy of hamlet arguably the best piece of writing ever done by william shakespeare, hamlet the is the classic example of a tragedy in all tragedies the hero suffers, and usually dies at the end.