The play was written between 1603 and 1606 and later revised, i.e. relatively late in Shakespeare's life; it is where one should look for the deeper underlying wisdom and observations often between the lines, in the subtext as it were, perhaps most of all in his very last play from 1610, The Tempest.